--iso parameter is broken

Bug #345925 reported by Kevin McDermott
This bug report is a duplicate of:  Bug #323901: Global name 'isodir' is not defined. Edit Remove
2
Affects Status Importance Assigned to Milestone
VMBuilder
New
Undecided
Unassigned

Bug Description

2009-03-20 14:33:04,592 INFO Cleaning up
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/vmbuilder", line 29, in <module>
    VMBuilder.run()
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/__init__.py", line 66, in run
    frontend.run()
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/plugins/cli/__init__.py", line 67, in run
    vm.create()
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/vm.py", line 458, in create
    self.install()
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/vm.py", line 397, in install
    self.distro.install(self.installdir)
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/plugins/ubuntu/distro.py", line 134, in install
    self.suite.install(destdir)
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/plugins/ubuntu/dapper.py", line 50, in install
    self.debootstrap()
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/plugins/ubuntu/dapper.py", line 209, in debootstrap
    cmd = ['/usr/sbin/debootstrap', '--arch=%s' % self.vm.arch, self.vm.suite, self.destdir, self.debootstrap_mirror()]
  File "/home/kevin/src/canonical/vmbuilder/vmbuilder-landscape-fixes/VMBuilder/plugins/ubuntu/dapper.py", line 214, in debootstrap_mirror
    os.mkdir(isodir)
NameError: global name 'isodir' is not defined

It's not defined anywhere outside the relevant code.

Also, it's flawed, if you specify "universe" as a component (after providing a suitable value for isodir) then it fails because Universe isn't on a CD, it should probably use a different mirror Universe, and not the Cd.

Revision history for this message
Andreas Rütten (aruetten) wrote :

The second point looks like this: Bug #323917

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.