vmbuilder sets new VMs' memory limits to 18446744073709551615 kb

Bug #378859 reported by Owen Jacobson
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
VMBuilder
Fix Released
Undecided
Charles Hooper

Bug Description

STR:

1. Install a stock vmbuilder package.
2. Create a ~/.vmbuilder.cfg with the following:
[DEFAULT]
mem = 256

# and other settings as appropriate
3. sudo vmbuilder kvm ubuntu --libvirt qemu:///system # no --mem
4. virsh dumpxml ubuntu | grep memory

If, and apparently only if, the value of mem came from ~/.vmbuilder.cfg, then the <memory /> element will contain 18446744073709551615. The number is identical regardless of the value used for mem in the config -- I've tested 128, 64, and 256, anyways.

This behaviour cannot be reproduced using the --mem flag, and if --mem
is specified, the presence or absence of a mem config file entry becomes
irrelevant (as it should).

It's probably relevant that this number is all-bits-1 for 64 bits, as an unsigned value.

Versions:
ii python-vm-builder 0.10-0ubuntu2

Charles Hooper (chooper)
Changed in vmbuilder:
status: New → Confirmed
Revision history for this message
Charles Hooper (chooper) wrote :
Charles Hooper (chooper)
Changed in vmbuilder:
status: Confirmed → Fix Committed
assignee: nobody → Charles Hooper (chooper)
Soren Hansen (soren)
Changed in vmbuilder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.