diff --git a/client-cli/pvc/cli/formatters.py b/client-cli/pvc/cli/formatters.py index 772e16f5..baea22e3 100644 --- a/client-cli/pvc/cli/formatters.py +++ b/client-cli/pvc/cli/formatters.py @@ -135,7 +135,7 @@ def cli_cluster_status_format_pretty(CLI_CONFIG, data): state_colour = ansii["green"] elif state in ["run,flush", "run,unflush", "run,flushed"]: 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"] else: state_colour = ansii["yellow"] diff --git a/daemon-common/cluster.py b/daemon-common/cluster.py index ce448e22..9e3f50a1 100644 --- a/daemon-common/cluster.py +++ b/daemon-common/cluster.py @@ -256,8 +256,13 @@ def getClusterInformation(zkhandler): "stop,unflush", "dead,ready", "dead,flush", + "dead,fence-flush", "dead,flushed", "dead,unflush", + "fenced,ready", + "fenced,flush", + "fenced,flushed", + "fenced,unflush", ] vm_state_combinations = [ "start",