Gracefully handle degraded instances in verification
authorKlaus Aehlig <aehlig@google.com>
Thu, 30 Jan 2014 15:30:00 +0000 (16:30 +0100)
committerKlaus Aehlig <aehlig@google.com>
Thu, 30 Jan 2014 16:28:41 +0000 (17:28 +0100)
commit099ed3b201d5d2d0a022e7f40b51b8cc34bb8beb
tree9805f2dc8afad837e6bc6591fb893e8c2249c48a
parent7e219d1bfad48beadb79dc7362b726c8ba7a59b8
Gracefully handle degraded instances in verification

The current code assumes that every instance either is of type
diskless or has at least one disk. However, with the option to
remove individual disk degraded 0-disk non-diskless instances
can occur. While such instances usually are not useful, Ganeti
still should be operational in their presence.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
lib/cmdlib/cluster.py