2011-05-18 21:57:10 |
garo |
bug |
|
|
added bug |
2011-05-18 21:57:10 |
garo |
attachment added |
|
check if there is a 3th element instead of checking if it's empty https://bugs.launchpad.net/bugs/784888/+attachment/2134305/+files/fixIndexError.patch |
|
2011-05-18 23:04:43 |
Serge Hallyn |
vm-builder (Ubuntu): status |
New |
Confirmed |
|
2011-05-18 23:04:48 |
Serge Hallyn |
vm-builder (Ubuntu): importance |
Undecided |
High |
|
2011-05-18 23:06:39 |
Serge Hallyn |
vm-builder (Ubuntu): assignee |
|
Serge Hallyn (serge-hallyn) |
|
2011-05-18 23:45:51 |
Launchpad Janitor |
branch linked |
|
lp:~vmbuilder-dev/vmbuilder/packaging |
|
2011-05-19 00:40:12 |
Launchpad Janitor |
vm-builder (Ubuntu): status |
Confirmed |
Fix Released |
|
2011-05-19 01:07:14 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/vm-builder |
|
2011-05-19 17:18:49 |
Serge Hallyn |
nominated for series |
|
Ubuntu Natty |
|
2011-05-19 17:18:49 |
Serge Hallyn |
bug task added |
|
vm-builder (Ubuntu Natty) |
|
2011-05-19 17:24:18 |
Serge Hallyn |
description |
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 |
Binary package hint: python-vm-builder
==================================
SRU justification:
1. Impact: using a partition file which doesn't container *optional* elements causes failure.
2. How bug addressed: the code is patched to use a proper test for the presence of the optional elements. (Existing check was simply wrong)
3. Patch: See comment number 4
4. To reproduce:
cat > partfile << EOF
root 4000
swap 1000
EOF
vmbuilder xen ubuntu --part partfile
5. Regression potential: If the patch were wrong, other bugs in the parsing of the partfile could be introduced.
==================================
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 |
|
2011-05-19 17:25:18 |
Serge Hallyn |
attachment added |
|
patch https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/784888/+attachment/2135542/+files/patch |
|
2011-05-19 17:26:13 |
Serge Hallyn |
bug |
|
|
added subscriber Serge Hallyn |
2011-05-19 17:26:38 |
Serge Hallyn |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2011-05-30 05:45:23 |
Martin Pitt |
vm-builder (Ubuntu Natty): status |
New |
Fix Committed |
|
2011-05-30 05:45:24 |
Martin Pitt |
bug |
|
|
added subscriber SRU Verification |
2011-05-30 05:45:28 |
Martin Pitt |
tags |
|
verification-needed |
|
2011-05-30 06:20:45 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/natty-proposed/vm-builder |
|
2014-12-03 08:58:41 |
Rolf Leggewie |
vm-builder (Ubuntu Natty): status |
Fix Committed |
Won't Fix |
|