ubuntu-vm-builder in maverick does not build maverick VMs

Bug #654656 reported by Alex Bligh on 2010-10-04
64
This bug affects 12 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-vm-builder

ubuntu-vm-builder in maverick does not build maverick vms.

$ dpkg --list | fgrep ubuntu-vm-builder
ii ubuntu-vm-builder 0.12.4-0ubuntu1 Ubuntu VM builder
$ dpkg --list | fgrep python-vm-builder
ii python-vm-builder 0.12.4-0ubuntu1 VM builder

 sudo ubuntu-vm-builder kvm maverick
2010-10-04 16:42:24,232 INFO : Calling hook: preflight_check
2010-10-04 16:42:24,233 ERROR : Invalid suite: "maverick". Valid suites are: dapper gutsy hardy intrepid jaunty karmic lucid
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 24, in <module>
    uvb.main()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 110, in main
    distro.build_chroot()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 80, in build_chroot
    self.call_hooks('preflight_check')
  File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 66, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 165, in call_hooks
    getattr(context, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 107, in preflight_check
    raise VMBuilderUserError('Invalid suite: "%s". Valid suites are: %s' % (suite, ' '.join(self.suites)))
VMBuilder.exception.VMBuilderUserError: Invalid suite: "maverick". Valid suites are: dapper gutsy hardy intrepid jaunty karmic lucid

William King (quentusrex) wrote :

I solved the issue by adding "maverick" to the suites array in the file:
/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/distro.py

And then copying the file:
/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/Lucid.py

to a new file called:
/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/Maverick.py

And replacing the class name of 'Lucid' with 'Maverick'.

Pantelis Koukousoulas (pktoss) wrote :

Here is a quick patch. I built / tested the resulting package
and it seems to work fine.

tags: added: patch
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

affects: ubuntu-vm-builder (Ubuntu) → vm-builder (Ubuntu)
Changed in vm-builder (Ubuntu):
status: New → Confirmed
affects: ubuntu-jeos → ubuntu
Changed in ubuntu:
status: New → Confirmed
no longer affects: ubuntu
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers