Fix misleading error message when checking disks
authorGuido Trotter <ultrotter@google.com>
Wed, 2 Apr 2008 18:01:54 +0000 (18:01 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 2 Apr 2008 18:01:54 +0000 (18:01 +0000)
commit04b5181f5aa8b9ab05300d9a1a07d3499308afbb
treea5e60b66f7fd20bf971383bf8172d862ff663c76
parentc299278d4d05f37f87683c3bcae5035d90d4900c
Fix misleading error message when checking disks

_CheckDiskConsistency outputs "Can't get any data from node NODE" when no drbd
is found on the target node. This causes a misleading error message to be
output for example on failover (when the primary node is down, or the instance
is not running), stating that no data could be got from the secondary node,
which scares the user and misleads him. Changing this to "Disk degraded or not
found on node %s" still reports that something is missing, but on the other
hand doesn't make the user think the node is down, or has no data at all...

Reviewed-by: imsnah
lib/cmdlib.py