NameError: global name 'isodir' is not defined

Bug #371783 reported by Marius Gedminas
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

$ sudo ubuntu-vm-builder kvm hardy --iso ~/in/ubuntu/jeos-8.04.2-jeos-i386.iso --ssh-user-key=~/.ssh/id_dsa.pub --libvirt qemu:///system
2009-05-04 21:07:25,695 INFO Creating disk image: /tmp/vmbuildertD1994/disk0.img
2009-05-04 21:07:25,813 INFO Adding partition table to disk image: /tmp/vmbuildertD1994/disk0.img
2009-05-04 21:07:25,852 INFO Adding type 1 partition to disk image: /tmp/vmbuildertD1994/disk0.img
2009-05-04 21:07:25,892 INFO Adding type 3 partition to disk image: /tmp/vmbuildertD1994/disk0.img
2009-05-04 21:07:25,917 INFO Creating loop devices corresponding to the created partitions
2009-05-04 21:07:25,945 INFO Creating file systems
2009-05-04 21:07:26,018 INFO mke2fs 1.41.4 (27-Jan-2009)
2009-05-04 21:07:26,911 INFO Mounting target filesystems
2009-05-04 21:07:27,152 INFO Installing guest operating system. This might take some time...
2009-05-04 21:07:27,153 INFO Cleaning up
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 29, in <module>
    VMBuilder.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/__init__.py", line 66, in run
    frontend.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", line 67, in run
    vm.create()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 457, in create
    self.install()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 396, in install
    self.distro.install(self.installdir)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 131, in install
    self.suite.install(destdir)
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 50, in install
    self.debootstrap()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 206, in debootstrap
    cmd = ['/usr/sbin/debootstrap', '--arch=%s' % self.vm.arch, self.vm.suite, self.destdir, self.debootstrap_mirror()]
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 211, in debootstrap_mirror
    os.mkdir(isodir)
NameError: global name 'isodir' is not defined

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: ubuntu-vm-builder 0.10-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 LC_CTYPE=lt_LT.UTF-8
 PATH=(custom, user)
 LANG=lt_LT.UTF-8
 SHELL=/bin/bash
SourcePackage: vm-builder
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
MarianoAbsatz (el-baby) wrote :

I have the exact same problem... this is a machine which I upgraded from intrepid to jaunty.

I had created VMs in intrepid using the same method and it had worked OK... but I don't know python and don't even know where or how thie 'isodir' variable should be declared :-(

Back to consuming bandwidth and time

Revision history for this message
Adolf Belka (adolfbelka-deactivatedaccount) wrote :

I have also had the same problem. This is for a new install of 9.04.

I also will have to go back to using the mirror option.

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the bug report. Ill see if I can get the fix in to the trunk.

Regards
chuck

Changed in vm-builder (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Drate Otin (drate-otin) wrote :

this bug has a patch presented in bug # 323901

didn't know which to mark as "duplicate" so I'll leave that to someone else.

And for those wondering, if you look closely at the patch you'll see that where it has "-" signs you take out the relevant line, where it has "+" signs you add the relevant line. Just open up the two files indicated in the two different "header" sections of the patch with your favorite text editor and goto town.

PLEASE ONLY GOTO TOWN IF YOU KNOW HOW TO NAVIGATE IN TOWN! TOWN IS NOT FOR TOURISM.

Revision history for this message
Soren Hansen (soren) wrote :

I believe this was fixed ages ago..

Changed in vm-builder (Ubuntu):
status: Confirmed → 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.