diff options
author | Vinit Agnihotri <vagnihotri@ddn.com> | 2022-04-26 17:20:21 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2022-06-28 09:24:31 +0000 |
commit | 794f125802969a6b99f2758f70d7c2318309d924 (patch) | |
tree | 086f90d64290a5064c3169710375dc3fab468b3b /ctdb/tests/scripts/integration.bash | |
parent | 428bc71f98fd560e1d8ea17fd76b4a34ac9421c6 (diff) | |
download | samba-794f125802969a6b99f2758f70d7c2318309d924.tar.gz |
ctdb-tool: Add UNKNOWN pseudo state
When a node is starting, CTDB reports remote nodes as unhealthy by
default. This can be misleading.
To hide this, report an "UNKNOWN" pseudo state when a remote node is
not disconnected and the runstate is less than or equal to
"FIRST_RECOVERY".
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/scripts/integration.bash')
-rw-r--r-- | ctdb/tests/scripts/integration.bash | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index eb3db1e1849..dbf9af0b346 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -446,16 +446,16 @@ node_has_status () local bits case "$status" in - unhealthy) bits="?|?|?|1|*" ;; - healthy) bits="?|?|?|0|*" ;; + unhealthy) bits="?|?|?|?|1|*" ;; + healthy) bits="?|?|?|?|0|*" ;; disconnected) bits="1|*" ;; connected) bits="0|*" ;; - banned) bits="?|1|*" ;; - unbanned) bits="?|0|*" ;; - disabled) bits="?|?|1|*" ;; - enabled) bits="?|?|0|*" ;; - stopped) bits="?|?|?|?|1|*" ;; - notstopped) bits="?|?|?|?|0|*" ;; + banned) bits="?|?|1|*" ;; + unbanned) bits="?|?|0|*" ;; + disabled) bits="?|?|?|1|*" ;; + enabled) bits="?|?|?|0|*" ;; + stopped) bits="?|?|?|?|?|1|*" ;; + notstopped) bits="?|?|?|?|?|0|*" ;; *) echo "node_has_status: unknown status \"$status\"" return 1 |