TypeError: 'NoneType' object has no attribute '__getitem__'

Bug #1467882 reported by Hadmut Danisch
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)

Bug Description


vmbuilder crashes in afterbuild cleanup when doing

vmbuilder vbox ubuntu --suite trusty --flavour virtual \
          --arch i386 --mem 1024 --rootsize 8000 \
          --dest /tmp/ubuntu-base --name ubuntu-base \
          --hostname ubuntu-base --user danisch --pass blabla \
          --addpkg acpid --addpkg linux-image-generic

last messages are (full output attached)

2015-06-23 12:19:40,022 INFO :
2015-06-23 12:19:40,194 INFO : Searching for GRUB installation directory ... found: /boot/grub
2015-06-23 12:19:40,245 INFO : Calling hook: install_kernel
2015-06-23 12:19:43,383 INFO : Calling hook: post_install
2015-06-23 12:19:43,385 INFO : Calling hook: unmount_partitions
2015-06-23 12:19:43,387 INFO : Unmounting target filesystem
2015-06-23 12:19:47,023 INFO : Calling hook: convert
2015-06-23 12:19:47,025 INFO : Converting /tmp/tmpR78GUJ to vdi, format /tmp/ubuntu-base/tmpR78GUJ.vdi
2015-06-23 12:19:47,567 INFO : Converting from raw image file="/tmp/tmpR78GUJ" to file="/tmp/ubuntu-base/tmpR78GUJ.vdi"...
2015-06-23 12:19:47,572 INFO : Creating dynamic image with size 9462349824 bytes (9024MB)...
2015-06-23 12:20:37,060 INFO : Calling hook: deploy
2015-06-23 12:20:37,249 INFO : Cleaning up
Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 232, in main
  File "/usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py", line 79, in finalise
    self.call_hooks('deploy', destdir)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 69, in call_hooks
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 44, in cleanup
  File "/usr/lib/python2.7/dist-packages/VMBuilder/disk.py", line 129, in <lambda>
    self.vm.add_clean_cb(lambda : self.unmap(ignore_fail=True))
  File "/usr/lib/python2.7/dist-packages/VMBuilder/disk.py", line 194, in unmap
TypeError: 'NoneType' object has no attribute '__getitem__'


ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-vm-builder 0.12.4+bzr489-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-55.94-generic 3.13.11-ckt20
Uname: Linux 3.13.0-55-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Jun 23 12:22:13 2015
PackageArchitecture: all
SourcePackage: vm-builder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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