vmbuilder xen ubuntu completely borked

Bug #531409 reported by Bernie Bernstein
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
VMBuilder
Fix Released
High
Soren Hansen
vm-builder (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When attempting to build an ubuntu image for xen, the script fails with python interpretation errors.

vmbuilder xen ubuntu --help results in the following stack trace:

Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 59, in main
    hypervisor, distro = self.handle_args(optparser, sys.argv[1:])
  File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 160, in handle_args
    hypervisor = VMBuilder.get_hypervisor(args[0])(distro)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 32, in __init__
    super(Hypervisor, self).__init__()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 30, in __init__
    super(Context, self).__init__(self)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/__init__.py", line 46, in __init__
    self.register_options()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/xen/vm.py", line 34, in register_options
    group.add_option('--xen-kernel', metavar='PATH', help='Path to the kernel to use (e.g.: /boot/vmlinux-2.6.27-7-server). Default depends on distribution and suite')
AttributeError: 'SettingGroup' object has no attribute 'add_option'

Investigation into this issue reveals that the developer likely intended to call the method 'add_setting' in the object SettingGroup. However, fixing this error only results in another one:

Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/pymodules/python2.6/VMBuilder/contrib/cli.py", line 59, in main
    hypervisor, distro = self.handle_args(optparser, sys.argv[1:])
  File "/usr/lib/pymodules/python2.6/VMBuilder/contrib/cli.py", line 160, in handle_args
    hypervisor = VMBuilder.get_hypervisor(args[0])(distro)
  File "/usr/lib/pymodules/python2.6/VMBuilder/hypervisor.py", line 32, in __init__
    super(Hypervisor, self).__init__()
  File "/usr/lib/pymodules/python2.6/VMBuilder/distro.py", line 30, in __init__
    super(Context, self).__init__(self)
  File "/usr/lib/pymodules/python2.6/VMBuilder/plugins/__init__.py", line 46, in __init__
    self.register_options()
  File "/usr/lib/pymodules/python2.6/VMBuilder/plugins/xen/vm.py", line 36, in register_options
    self.context.register_setting_group(group)
AttributeError: 'Xen' object has no attribute 'register_setting_group'

Soren Hansen (soren)
Changed in vmbuilder:
status: New → Confirmed
assignee: nobody → Soren Hansen (soren)
importance: Undecided → High
milestone: none → 0.12.3
Revision history for this message
Bernie Bernstein (bernie9998) wrote :

I've worked on some of this already. I'm submitting a patch which resolves the issue for me.

Paul Sladen (sladen)
affects: ubuntu → vm-builder (Ubuntu)
Chuck Short (zulcss)
Changed in vm-builder (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Soren Hansen (soren)
Changed in vmbuilder:
status: Confirmed → Fix Committed
Changed in vm-builder (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vm-builder - 0.12.3-0ubuntu1

---------------
vm-builder (0.12.3-0ubuntu1) lucid; urgency=low

  * New upstream bugfix release. (LP: #530331, #531409, #460398, #538674,
    #550666, possibly others)
 -- Soren Hansen <email address hidden> Mon, 29 Mar 2010 22:22:49 -0500

Changed in vm-builder (Ubuntu):
status: Fix Committed → Fix Released
Soren Hansen (soren)
Changed in vmbuilder:
status: Fix Committed → Fix Released
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.