Use KB as the unit for LVM PE size
authorAaron Knister <aaron.knister@gmail.com>
Mon, 15 Apr 2013 16:26:36 +0000 (12:26 -0400)
committerMichele Tartara <mtartara@google.com>
Tue, 16 Apr 2013 09:12:00 +0000 (11:12 +0200)
commitbc3427b73914a5530d08d55dfd78b595a69c33af
treecedd109cbb6ac27687130538b3b9833596cd9387
parentbfcd1652dbe4daa5a102d73eab55d551c8a4c0c0
Use KB as the unit for LVM PE size

LogicalVolume.Attach in bdev.py is calling "lvs" and specifying a unit of
Megabytes that is then converted to an integer resulting in the value 0 for
small sizes.

This patch makes Ganeti use KB for the unit instead of MB.

Fixes Issue 347.

Signed-off-by: Aaron Knister <aaron.knister@gmail.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/bdev.py