Ensure fencing states are properly reflected
This commit is contained in:
parent
f46bfc962f
commit
c4397219da
|
@ -135,7 +135,7 @@ def cli_cluster_status_format_pretty(CLI_CONFIG, data):
|
||||||
state_colour = ansii["green"]
|
state_colour = ansii["green"]
|
||||||
elif state in ["run,flush", "run,unflush", "run,flushed"]:
|
elif state in ["run,flush", "run,unflush", "run,flushed"]:
|
||||||
state_colour = ansii["blue"]
|
state_colour = ansii["blue"]
|
||||||
elif "dead" in state or "stop" in state:
|
elif "dead" in state or "fenced" in state or "stop" in state:
|
||||||
state_colour = ansii["red"]
|
state_colour = ansii["red"]
|
||||||
else:
|
else:
|
||||||
state_colour = ansii["yellow"]
|
state_colour = ansii["yellow"]
|
||||||
|
|
|
@ -256,8 +256,13 @@ def getClusterInformation(zkhandler):
|
||||||
"stop,unflush",
|
"stop,unflush",
|
||||||
"dead,ready",
|
"dead,ready",
|
||||||
"dead,flush",
|
"dead,flush",
|
||||||
|
"dead,fence-flush",
|
||||||
"dead,flushed",
|
"dead,flushed",
|
||||||
"dead,unflush",
|
"dead,unflush",
|
||||||
|
"fenced,ready",
|
||||||
|
"fenced,flush",
|
||||||
|
"fenced,flushed",
|
||||||
|
"fenced,unflush",
|
||||||
]
|
]
|
||||||
vm_state_combinations = [
|
vm_state_combinations = [
|
||||||
"start",
|
"start",
|
||||||
|
|
Loading…
Reference in New Issue