Commit 150e978f authored by Iustin Pop's avatar Iustin Pop
Browse files

Add a new OpVerifyDisks opcode

This patch adds the definition of a new opcode that will be used to
compute the list of instances with not-online disks.

Reviewed-by: imsnah
parent cb2037a2
......@@ -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
Note that only instances that are drbd-based are taken into
consideration. This might need to be revisited in the future.
__slots__ = []
class OpMasterFailover(OpCode):
"""Do a master failover."""
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