Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,28 @@ class OpVerifyCluster(OpCode): ...@@ -86,6 +86,28 @@ class OpVerifyCluster(OpCode):
__slots__ = [] __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): class OpMasterFailover(OpCode):
"""Do a master failover.""" """Do a master failover."""
OP_ID = "OP_CLUSTER_MASTERFAILOVER" OP_ID = "OP_CLUSTER_MASTERFAILOVER"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment