cluster verify and instance disks on offline nodes
authorIustin Pop <iustin@google.com>
Tue, 8 Feb 2011 16:07:13 +0000 (17:07 +0100)
committerIustin Pop <iustin@google.com>
Wed, 9 Feb 2011 08:53:05 +0000 (09:53 +0100)
commita3de2ae783ce4fac89ca914a88e35ed81a1cb722
tree78cb7396b1ff39015c09d778005fc7fac1845250
parentf7661f6b447e1512641896323f780f069b58b2ba
cluster verify and instance disks on offline nodes

Currently, cluster-verify says:

- ERROR: instance instance14: couldn't retrieve status for disk/0 on node3: node offline
- ERROR: instance instance14: instance lives on offline node(s) node3
- ERROR: instance instance15: couldn't retrieve status for disk/0 on node3: node offline
- ERROR: instance instance15: instance lives on offline node(s) node3

This is redundant as the “lives on offline node” message should be all we need to
understand the cluster situation.

The patch fixes this and also corrects a very old idiom.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Stephen Shirley <diamond@google.com>
lib/cmdlib.py