[lxc-devel] [lxd/master] test: Wait a few more seconds for the rebalance to happen

freeekanayaka on Github lxc-bot at linuxcontainers.org
Fri May 22 09:45:26 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 425 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200522/0d5fa83a/attachment.bin>
-------------- next part --------------
From 53c56de9c7fd776db9fcbd455bbaaafb91a9c070 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at canonical.com>
Date: Fri, 22 May 2020 10:44:18 +0100
Subject: [PATCH] test: Wait a few more seconds for the rebalance to happen

Rebalancing now happens around 5 seconds after the heartbeat

Signed-off-by: Free Ekanayaka <free.ekanayaka at canonical.com>
---
 test/suites/clustering.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/suites/clustering.sh b/test/suites/clustering.sh
index 774dd7d798..9783cc2e26 100644
--- a/test/suites/clustering.sh
+++ b/test/suites/clustering.sh
@@ -1859,8 +1859,8 @@ test_clustering_remove_raft_node() {
   # Force removing the raft node.
   LXD_DIR="${LXD_ONE_DIR}" lxd cluster remove-raft-node -q "10.1.1.102"
 
-  # Wait for a heartbeat to propagate.
-  sleep 15
+  # Wait for a heartbeat to propagate and a rebalance to be performed.
+  sleep 20
 
   # We're back to 3 database nodes.
   LXD_DIR="${LXD_ONE_DIR}" lxc cluster list | grep "node1" | grep -q "YES"


More information about the lxc-devel mailing list