summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-01-14 19:39:30 +0530
committerVijay Avuthu <vavuthu@redhat.com>2019-01-23 05:26:15 +0000
commit45ea4788b1f6d3a6fe4419e0aea9e68cf6aa062b (patch)
treed3d1f4addfd860f966e6a26ffb44edf6cd2f2472 /tests
parent1f3968667c7f3d9121df209d5f3ba7517d982eb8 (diff)
Reset quorum value to default
Change-Id: I0486abff96ea3ea626ce4d18ac0c24f10ed6a846 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/glusterd/test_quorum_remove_brick.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/glusterd/test_quorum_remove_brick.py b/tests/functional/glusterd/test_quorum_remove_brick.py
index 4429d8231..e4caa065f 100644
--- a/tests/functional/glusterd/test_quorum_remove_brick.py
+++ b/tests/functional/glusterd/test_quorum_remove_brick.py
@@ -71,6 +71,15 @@ class TestServerQuorumNotMet(GlusterBaseClass):
raise ExecutionError("Servers are not in peer probed state")
g.log.info("All peers are in connected state")
+ # Setting server-quorum-ratio to 51%
+ ret = set_volume_options(self.mnode, 'all',
+ {'cluster.server-quorum-ratio': '51%'})
+ if not ret:
+ raise ExecutionError("Failed to set server quorum ratio for %s"
+ % self.servers)
+ g.log.info("Able to set server quorum ratio successfully for %s",
+ self.servers)
+
# stopping the volume and Cleaning up the volume
ret = self.cleanup_volume()
if not ret: