Commit aa9d0c32 authored by Guido Trotter's avatar Guido Trotter
Browse files

Improve disk consistency error message again

This new version includes all the possible failure options.

Reviewed-by: iustinp
parent ad6d3f7d
......@@ -1154,7 +1154,7 @@ def _CheckDiskConsistency(cfgw, dev, node, on_primary, ldisk=False):
if on_primary or dev.AssembleOnSecondary():
rstats = rpc.call_blockdev_find(node, dev)
if not rstats:
logger.ToStderr("Disk degraded or not found on node %s" % node)
logger.ToStderr("Node %s: Disk degraded, not found or node down" % node)
result = False
result = result and (not rstats[idx])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment