vmbuilder 0.11.3 fails to find ec2-init file

Bug #585110 reported by Gerry Reno
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Confirmed
Undecided
Unassigned
Declined for Karmic by Mathias Gug
Declined for Lucid by Mathias Gug
Declined for Maverick by Mathias Gug

Bug Description

I added 'lucid' as a valid suite name under ubuntu/plugins for 0.11.3 so I could create "lucid" images and when I run vmbuilder it gets right to the very end and then has a problem with finding ec2-init files.

When creating a "Lucid" image for EC2, vmbuilder cannot find ec2-init files:

...
2010-05-24 13:44:20,206 DEBUG : Setting up libiw30 (30~pre9-3ubuntu4) ...
2010-05-24 13:44:20,225 DEBUG :
2010-05-24 13:44:20,233 DEBUG : Setting up wireless-tools (30~pre9-3ubuntu4) ...
2010-05-24 13:44:20,245 DEBUG :
2010-05-24 13:44:20,246 DEBUG : Setting up wpasupplicant (0.6.9-3ubuntu3) ...
2010-05-24 13:44:20,327 DEBUG :
2010-05-24 13:44:20,328 DEBUG : Processing triggers for libc-bin ...
2010-05-24 13:44:20,332 DEBUG : ldconfig deferred processing now taking place
2010-05-24 13:44:20,374 DEBUG : Output from template '/etc/vmbuilder/ubuntu/51_update-motd.tmpl': #!/bin/sh

echo "---------------------------------------------------------------------"
echo "At the moment, only the core of the system is installed. To tune the "
echo "system to your needs, you can choose to install one or more "
echo "predefined collections of software by running the following "
echo "command: "
echo " "
echo " sudo tasksel --section server "
echo "---------------------------------------------------------------------"

2010-05-24 13:44:20,377 DEBUG : Output from template '/etc/vmbuilder/ubuntu/is-compat-env.tmpl': # this is read by ec2-is-compat-env to determine if this is an
# ec2 compatible environment
compat=1

2010-05-24 13:44:20,377 DEBUG : Oh, dear, an exception occurred
2010-05-24 13:44:20,377 INFO : Cleaning up
2010-05-24 13:44:20,377 DEBUG : ['umount', '/tmp/vmbuilderfbdGXK/root/proc']
2010-05-24 13:44:20,386 DEBUG : umount: /tmp/vmbuilderfbdGXK/root/proc: not mounted
2010-05-24 13:44:20,386 DEBUG : ['umount', '/tmp/vmbuilderfbdGXK/root/dev/pts']
2010-05-24 13:44:20,394 DEBUG : umount: /tmp/vmbuilderfbdGXK/root/dev/pts: not mounted
2010-05-24 13:44:20,395 DEBUG : ['umount', '/tmp/vmbuilderfbdGXK/root/dev']
2010-05-24 13:44:20,411 DEBUG : umount: /tmp/vmbuilderfbdGXK/root/dev: not mounted
2010-05-24 13:44:20,411 DEBUG : Unmounting /tmp/vmbuilderfbdGXK/target/mnt
2010-05-24 13:44:20,412 DEBUG : ['umount', '/tmp/vmbuilderfbdGXK/target/mnt']
2010-05-24 13:44:21,287 DEBUG : Unmounting /tmp/vmbuilderfbdGXK/target/
2010-05-24 13:44:21,288 DEBUG : ['umount', '/tmp/vmbuilderfbdGXK/target/']
2010-05-24 13:44:21,927 DEBUG : ['rmdir', 'ubuntu-xen']
2010-05-24 13:44:21,991 DEBUG : ['rm', '-rf', '/tmp/vmbuilderfbdGXK']
2010-05-24 13:44:23,090 DEBUG : ['rm', '/tmp/tmpy5j0Qq']
Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 29, in <module>
    VMBuilder.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/__init__.py", line 65, in run
    frontend.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", line 68, in run
    vm.create()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 484, in create
    self.install()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 407, in install
    self.distro.install(self.installdir)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 148, in install
    self.suite.install(destdir)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 125, in install
    self.install_ec2()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/jaunty.py", line 34, in install_ec2
    self.install_from_template('/etc/ec2-init/is-compat-env', 'is-compat-env')
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 325, in install_from_template
    return self.vm.distro.install_from_template(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/__init__.py", line 72, in install_from_template
    return self.vm.install_file(path, VMBuilder.util.render_template(self.__module__.split('.')[2], self.vm, tmplname, context), mode=mode)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 448, in install_file
    fp = open(fullpath, 'w')
IOError: [Errno 2] No such file or directory: '/tmp/vmbuilderfbdGXK/root/etc/ec2-init/is-compat-env'

description: updated
Revision history for this message
Scott Moser (smoser) wrote :

vmbuilder that is used for building UEC images is (right now)
http://bazaar.launchpad.net/~ubuntu-virt/vmbuilder/0.11/

That should have all the code you need to build.

our automated builds (https://code.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-builds) build from that branch out of a bzr checkout (ie, not a package).

Changed in vm-builder (Ubuntu):
status: New → Confirmed
Revision history for this message
Gerry Reno (greno-verizon) wrote :

Thanks Scott. I just checked that branch and it looks like it has everything I need.

Would it be possible for Ubuntu vmbuilder team to quickly pull together a 0.11.4 release for Karmic that would have support for 'Lucid' and 'Maverick'? That way we could also downgrade to it in Lucid until the 0.12 branch can have EC2 support added.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.