From 83173908b3e3a02ebb6eb17963f0889c7ecff987 Mon Sep 17 00:00:00 2001 From: Sanju Rakonde Date: Thu, 10 Oct 2019 20:40:49 +0530 Subject: glusterd: rebalance start should fail when quorum is not met rebalance start should not succeed if quorum is not met. this patch adds a condition to check whether quorum is met in pre-validation stage. fixes: bz#1760467 Change-Id: Ic7d0d08f69e4bc6d5e7abae713ec1881531c8ad4 Signed-off-by: Sanju Rakonde --- tests/bugs/glusterd/quorum-validation.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/bugs/glusterd/quorum-validation.t') diff --git a/tests/bugs/glusterd/quorum-validation.t b/tests/bugs/glusterd/quorum-validation.t index ff46729e0bd..3cc3351b43b 100644 --- a/tests/bugs/glusterd/quorum-validation.t +++ b/tests/bugs/glusterd/quorum-validation.t @@ -34,6 +34,8 @@ TEST ! $CLI_1 volume add-brick $V0 $H1:$B1/${V0}2 TEST ! $CLI_1 volume remove-brick $V0 $H1:$B1/${V0}0 start TEST ! $CLI_1 volume set $V0 barrier enable +#quorum is not met, rebalance/profile start should fail +TEST ! $CLI_1 volume rebalance $V0 start TEST ! $CLI_1 volume profile $V0 start #bug-1690753 - Volume stop when quorum not met is successful -- cgit