Dependency issue on rubygems?
starksm64 Aug 26, 2010 1:38 PMI'm working on building a new appliance using my own RPM in a local repository, and on the first try to create the appliance I see this error:
I, [2010-08-26T10:13:22.720716 #27585] INFO -- : Building hostmanager appliance... E, [2010-08-26T10:13:41.610360 #27585] ERROR -- : /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.0.22/lib/boxgrinder-core/helpers/exec-helper.rb:62:in `execute' /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-rpm-based-os-plugin-0.0.3/lib/boxgrinder-build-rpm-based-os-plugin/rpm-based-os-plugin.rb:43:in `build_with_appliance_creator' /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-fedora-os-plugin-0.0.2/lib/boxgrinder-build-fedora-os-plugin/fedora-plugin.rb:61:in `execute' /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/lib/boxgrinder-build/plugins/base-plugin.rb:90:in `run' /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/lib/boxgrinder-build/appliance.rb:71:in `execute_os_plugin' /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/lib/boxgrinder-build/appliance.rb:55:in `create' /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/bin/boxgrinder-build:88 /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:155:in `run' /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:385:in `run_active_command' /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:74:in `run!' /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/delegates.rb:7:in `run!' /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/import.rb:10 /usr/bin/boxgrinder-build:19 E, [2010-08-26T10:13:41.610561 #27585] ERROR -- : An error occurred while executing command: 'appliance-creator -d -v -t build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp --cache=/var/cache/boxgrinder/rpms-cache/i386/fedora/13 --config build/appliances/i386/fedora/13/hostmanager/fedora-plugin/hostmanager.ks -o build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp --name hostmanager --vmem 512 --vcpu 1', process exited with wrong exit status: 1 /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.0.22/lib/boxgrinder-core/helpers/exec-helper.rb:68:in `execute': An error occurred while executing command: 'appliance-creator -d -v -t build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp --cache=/var/cache/boxgrinder/rpms-cache/i386/fedora/13 --config build/appliances/i386/fedora/13/hostmanager/fedora-plugin/hostmanager.ks -o build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp --name hostmanager --vmem 512 --vcpu 1', process exited with wrong exit status: 1 (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-rpm-based-os-plugin-0.0.3/lib/boxgrinder-build-rpm-based-os-plugin/rpm-based-os-plugin.rb:43:in `build_with_appliance_creator' from /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-fedora-os-plugin-0.0.2/lib/boxgrinder-build-fedora-os-plugin/fedora-plugin.rb:61:in `execute' from /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/lib/boxgrinder-build/plugins/base-plugin.rb:90:in `run' from /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/lib/boxgrinder-build/appliance.rb:71:in `execute_os_plugin' from /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/lib/boxgrinder-build/appliance.rb:55:in `create' from /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.5.1/bin/boxgrinder-build:88 from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:155:in `run' from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:385:in `run_active_command' from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:74:in `run!' from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/delegates.rb:7:in `run!' from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/import.rb:10 from /usr/bin/boxgrinder-build:19 [starksm@fedora13 BoxGrinder]$
Since I could not tell what the problem is from this, I ran the command that failed and it showed:
[starksm@fedora13 BoxGrinder]$ sudo appliance-creator -d -v -t build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp --cache=/var/cache/boxgrinder/rpms-cache/i386/fedora/13 --config build/appliances/i386/fedora/13/hostmanager/fedora-plugin/hostmanager.ks -o build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp --name hostmanager --vmem 512 --vcpu 1 [sudo] password for starksm: Adding disk sda as /home/starksm/Dev/BoxGrinder/build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp/imgcreate-uijOsv/tmp-dFUlsN/hostmanager-sda.raw Extending sparse file /home/starksm/Dev/BoxGrinder/build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp/imgcreate-uijOsv/tmp-dFUlsN/hostmanager-sda.raw to 2147483648 Losetup add /dev/loop0 mapping to /home/starksm/Dev/BoxGrinder/build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp/imgcreate-uijOsv/tmp-dFUlsN/hostmanager-sda.raw Formatting disks Initializing partition table for /dev/loop0 Assigning partitions to disks Assigned / to sda1 at 0 at size 2048 Creating partitions Add primary part at 0 of size 2048 Warning: The resulting partition is not properly aligned for best performance. Dev loop0p1: /dev/loop01 -> /dev/mapper/loop0p1 Adding partx mapping for /dev/loop0 ['/'] Formating ext3 filesystem on /dev/loop01 mke2fs 1.41.10 (10-Feb-2009) Filesystem label=/ OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 125184 inodes, 500000 blocks 5000 blocks (1.00%) reserved for the super user First data block=0 Maximum filesystem blocks=515899392 16 block groups 32768 blocks per group, 32768 fragments per group 7824 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 33 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. Tuning filesystem on /dev/loop01 tune2fs 1.41.10 (10-Feb-2009) Setting maximal mount count to -1 Setting interval between checks to 0 seconds Mounting /dev/loop01 at /home/starksm/Dev/BoxGrinder/build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp/imgcreate-uijOsv/install_root/ Writing mkinitrd config /home/starksm/Dev/BoxGrinder/build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp/imgcreate-uijOsv/install_root/etc/sysconfig/mkinitrd Retrieving http://repo.boxgrinder.org/cirras/packages/fedora/13/RPMS/i386/repodata/repomd.xml ...OK Retrieving http://repo.boxgrinder.org/cirras/packages/fedora/13/RPMS/noarch/repodata/repomd.xml ...OK Retrieving http://fedora.secsup.org/linux/releases/13/Everything/i386/os/repodata/repomd.xml ...OK Retrieving http://astromirror.uchicago.edu/fedora/linux/updates/13/i386/repodata/repomd.xml ...OK Retrieving http://astromirror.uchicago.edu/fedora/linux/updates/13/i386/repodata/b29c464ed4e70342a8fef7b15df2e2132f2bd7e071951b73d38c3bacae4edcab-primary.sqlite.bz2 ...OK Retrieving file:///opt/repo/RPMS/i386/repodata/repomd.xml ...OK Retrieving file:///opt/repo/RPMS/noarch/repodata/repomd.xml ...OK /usr/lib/python2.6/site-packages/imgcreate/errors.py:40: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 return str(self.message) Unable to create appliance : Failed to build transaction : rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(json) >= 1.4.6 rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(progressbar) >= 0.9.0 rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(net-sftp) >= 2.0.4 rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(bluepill) >= 0.0.39 rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(boxgrinder-core) >= 0.0.5 rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(amazon-ec2) >= 0.9.6 rubygem-jboss-aws-hostmanager-0.1.0-1.fc13.noarch requires rubygem(aws-s3) >= 0.6.2 Unmounting directory /home/starksm/Dev/BoxGrinder/build/appliances/i386/fedora/13/hostmanager/fedora-plugin/tmp/imgcreate-uijOsv/install_root/ Removing compat symlinks Unmapping /dev/loop0 Losetup remove /dev/loop0
So apparently I'm missing several rubygems, but I do have all of thoses listed:
[starksm@fedora13 jboss-hostmanager]$ for g in json progressbar net-sftp bluepill boxgrinder-core amazon-ec2 aws-s3 > do > gem list $g > done *** LOCAL GEMS *** json (1.4.6) *** LOCAL GEMS *** progressbar (0.9.0) *** LOCAL GEMS *** net-sftp (2.0.5) *** LOCAL GEMS *** bluepill (0.0.42, 0.0.39) *** LOCAL GEMS *** boxgrinder-core (0.0.22, 0.0.21) *** LOCAL GEMS *** amazon-ec2 (0.9.15) *** LOCAL GEMS *** aws-s3 (0.6.2)
What am I missing here?