Uploaded image for project: 'BoxGrinder Build'
  1. BoxGrinder Build
  2. BGBUILD-359

Unable to create more that 2 partitions in Centos EBS-EC2.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.10.3
    • Component/s: Meta appliance
    • Labels:
      None
    • Environment:

      Centos 5.7.

    • Steps to Reproduce:
      Hide

      1. Create an appliance file with more that 2 partitions.
      2. Use a meta appliance in ec2 to reproduce this.

      Show
      1. Create an appliance file with more that 2 partitions. 2. Use a meta appliance in ec2 to reproduce this.
    • Estimated Difficulty:
      High

      Description

      The build fails when number of partitions more than 2.

      D, 2012-04-09T11:00:17.840987 #31377 DEBUG – : Initializing partition table for /dev/loop0 with msdos layout
      D, 2012-04-09T11:00:17.976178 #31377 DEBUG – : Assigning partitions to disks
      D, 2012-04-09T11:00:17.976473 #31377 DEBUG – : Assigned / to sda1 at 0 at size 4096
      D, 2012-04-09T11:00:17.976675 #31377 DEBUG – : Assigned /tmp to sda2 at 4096 at size 1024
      D, 2012-04-09T11:00:17.976899 #31377 DEBUG – : Assigned /var to sda3 at 5120 at size 1024
      D, 2012-04-09T11:00:17.977071 #31377 DEBUG – : Assigned /boot to sda5 at 6144 at size 102
      D, 2012-04-09T11:00:17.977254 #31377 DEBUG – : Creating partitions
      D, 2012-04-09T11:00:17.977438 #31377 DEBUG – : Add primary part at 0 of size 4096
      D, 2012-04-09T11:00:17.999629 #31377 DEBUG – : Add primary part at 4096 of size 1024
      D, 2012-04-09T11:00:18.026332 #31377 DEBUG – : Add primary part at 5120 of size 1024
      D, 2012-04-09T11:00:18.050031 #31377 DEBUG – : Added extended part at 6144 of size 102
      D, 2012-04-09T11:00:18.086854 #31377 DEBUG – : Add logical part at 6144 of size 102
      D, 2012-04-09T11:00:18.139871 #31377 DEBUG – : Unable to create appliance : Failed mount disks : Unexpected number of partitions from kpartx: 5 != 4
      D, 2012-04-09T11:00:18.140282 #31377 DEBUG – : Losetup remove /dev/loop0
      E, 2012-04-09T11:00:18.202485 #31377 ERROR – : /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.3.11/lib/boxgrinder-core/helpers/exec-helper.rb:85:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:33:in `build_rhel'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb:44:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:129:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `each'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:164:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/bin/boxgrinder-build:202
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19
      F, 2012-04-09T11:00:18.203056 #31377 FATAL – : RuntimeError: An error occurred while executing command: 'appliance-creator -d -v -t 'build/appliances/x86_64/centos/5/c57-64-bit-test/1.0/centos-plugin/tmp' --cache=/var/cache/boxgrinder/rpms-cache/x86_64/centos/5 --config 'build/appliances/x86_64/centos/5/c57-64-bit-test/1.0/centos-plugin/tmp/c57-64-bit-test.ks' -o 'build/appliances/x86_64/centos/5/c57-64-bit-test/1.0/centos-plugin/tmp' --name 'c57-64-bit-test' --vmem 256 --vcpu 1 --format raw', process exited with wrong exit status: 1
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.3.11/lib/boxgrinder-core/helpers/exec-helper.rb:92:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:33:in `build_rhel'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb:44:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:129:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `each'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:164:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/bin/boxgrinder-build:202
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                msavy Marc Savy
                Reporter:
                supriyashivkumar Supriya Shivkumar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: