Allow plain/DRBD conversions regardless of lack of disks
authorHrvoje Ribicic <riba@google.com>
Mon, 16 Mar 2015 22:54:04 +0000 (22:54 +0000)
committerHrvoje Ribicic <riba@google.com>
Tue, 17 Mar 2015 12:25:14 +0000 (13:25 +0100)
commit1ae08cbd28bafb4abda6dbf8fe79bff4b34e463e
treed150a09eb320afdf31674da3cf5168c0139ddb7b
parenta3bea125c209662a9bfbace5ae1c2f7d0a3dd0a0
Allow plain/DRBD conversions regardless of lack of disks

Because of trivial issues, it was impossible to use standard mechanisms
to convert a diskless plain instance to DRBD and vice versa. This
patch fixes that with a mechanism which will work until later versions,
where instances without disks organically take on the diskless
template.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/cmdlib/instance.py
test/py/cmdlib/instance_unittest.py