diff --git a/lib/opcodes.py b/lib/opcodes.py index 99f44392c97da0e4dc12d469c34f41c42dfef503..3b248fc3069ad012c6a2c07bc0f8704ce0152bf0 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -86,6 +86,28 @@ class OpVerifyCluster(OpCode): __slots__ = [] +class OpVerifyDisks(OpCode): + """Verify the cluster disks. + + Parameters: none + + Result: two lists: + - list of node names with bad data returned (unreachable, etc.) + - list of instances with degraded disks (that should be activated) + + In normal operation, both lists should be empty. A non-empty + instance list is still ok (errors were fixed) but non-empty node + list means some node is down, and probably there are unfixable drbd + errors. + + Note that only instances that are drbd-based are taken into + consideration. This might need to be revisited in the future. + + """ + OP_ID = "OP_CLUSTER_VERIFY_DISKS" + __slots__ = [] + + class OpMasterFailover(OpCode): """Do a master failover.""" OP_ID = "OP_CLUSTER_MASTERFAILOVER"