[Bug 784888] [NEW] indexerror in vmbuilder when partitionfile contains 2 columns or less

garo 784888 at bugs.launchpad.net
Wed May 18 21:57:10 UTC 2011


Public bug reported:

Binary package hint: python-vm-builder

In 11.04 with python-vm-builder 0.12.4+bzr464-0ubuntu1, when you have a file vmbuilder.partition with 2 lines:
root 4000
swap 1000

and you run "vmbuilder xen ubuntu --suite natty --flavour virtual --arch amd64 -o --ip 192.168.122.2 --hostname myvm --bridge virbr0 --part vmbuilder.partition --user user --name user --pass default" it will crash with this error:
Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()  
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 222, in main
    self.set_disk_layout(hypervisor)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 351, in set_disk_layout
    if not elements[3]:
IndexError: list index out of range

This is fixed with the patch i included

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/784888

Title:
  indexerror in vmbuilder when partitionfile contains 2 columns or less



More information about the Ubuntu-server-bugs mailing list