vmbuilder fails when specifying numeric values in config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: python-vm-builder
When using a config file containing
[DEFAULT]
rootsize = 10000
swapsize = 4000
The vmbuilder script fails with
Traceback (most recent call last):
File "/usr/bin/
VMBuilder.run()
File "/usr/lib/
frontend.run()
File "/usr/lib/
self.
File "/usr/lib/
size = vm.rootsize + vm.swapsize + vm.optsize
TypeError: cannot concatenate 'str' and 'int' objects
Of course the natural workaround is to use part = <partitionfile>, in stead of specifying rootsize and swapsize.
Jarl
summary: |
- vmbuilder fails when specifying rootsize and swapsize in config file + vmbuilder fails when specifying numeric values in config file |
Even worse, much much worse; If the configuration file contains (for specifying 2GB ram)
mem = 2000
the vmbuilder script will not fail, it will silently create an XML file containing 184467440737095 51615</ memory> y>1844674407370 9551615< /currentMemory>
<memory>
<currentMemor
This will in turn make 'virsh start ubuntu' hang and top will show a libvirtd using 100% of CPU.
Jarl