[lxc-devel] [lxd/master] test/clustering: increase timing to detect offline node
freeekanayaka on Github
lxc-bot at linuxcontainers.org
Wed Apr 15 15:49:49 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200415/a805747f/attachment.bin>
-------------- next part --------------
From 1de210dd0d119a7904860a480141dfdfa9b5074e Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at canonical.com>
Date: Wed, 15 Apr 2020 16:48:43 +0100
Subject: [PATCH] test/clustering: increase timing to detect offline node
Signed-off-by: Free Ekanayaka <free.ekanayaka at canonical.com>
---
test/suites/clustering.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/suites/clustering.sh b/test/suites/clustering.sh
index 801cdc33a2..0f3f6293e9 100644
--- a/test/suites/clustering.sh
+++ b/test/suites/clustering.sh
@@ -121,10 +121,11 @@ test_clustering_membership() {
# Shutdown a database node, and wait a few seconds so it will be
# detected as down.
- LXD_DIR="${LXD_ONE_DIR}" lxc config set cluster.offline_threshold 12
+ LXD_DIR="${LXD_ONE_DIR}" lxc config set cluster.offline_threshold 11
LXD_DIR="${LXD_THREE_DIR}" lxd shutdown
- sleep 15
- LXD_DIR="${LXD_TWO_DIR}" lxc cluster list | grep "node3" | grep -q "OFFLINE"
+ sleep 18
+ LXD_DIR="${LXD_TWO_DIR}" lxc cluster list
+ LXD_DIR="${LXD_TWO_DIR}" lxc cluster show node3 | grep -q "status: Offline"
# Gracefully remove a node.
LXD_DIR="${LXD_TWO_DIR}" lxc cluster remove node4
More information about the lxc-devel
mailing list