summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-01-14 19:55:42 +0530
committerVijay Avuthu <vavuthu@redhat.com>2019-01-22 04:37:31 +0000
commit9b07ecd171c58d53e04772e54bc27807274b51c9 (patch)
treeda9216d7830e8d9722eb6fad3673b9e1b587b301
parenta189d6b362ab4a1bca262572312262212eea1102 (diff)
Reverting back quorum value to 51%
Change-Id: I7361059b663ea19c08a44c4763881634703d36a4 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
-rw-r--r--tests/functional/glusterd/test_replace_brick_quorum_not_met.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/functional/glusterd/test_replace_brick_quorum_not_met.py b/tests/functional/glusterd/test_replace_brick_quorum_not_met.py
index da7f7d0..4484f17 100644
--- a/tests/functional/glusterd/test_replace_brick_quorum_not_met.py
+++ b/tests/functional/glusterd/test_replace_brick_quorum_not_met.py
@@ -26,8 +26,7 @@ from glustolibs.gluster.exceptions import ExecutionError
from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on
from glustolibs.gluster.lib_utils import form_bricks_list
from glustolibs.gluster.volume_ops import (set_volume_options, volume_start,
- volume_create, get_volume_status,
- volume_reset)
+ volume_create, get_volume_status)
from glustolibs.gluster.gluster_init import (stop_glusterd,
is_glusterd_running,
start_glusterd)
@@ -61,11 +60,13 @@ class TestReplaceBrickWhenQuorumNotMet(GlusterBaseClass):
if not ret:
raise ExecutionError("Servers are not in peer probed state")
- # reset quorum ratio to default
- g.log.info("resetting quorum ratio")
- ret, _, _ = volume_reset(self.mnode, 'all')
- self.assertEqual(ret, 0, "Failed to reset quorum ratio")
- g.log.info("Successfully resetted quorum ratio")
+ # Setting Quorum ratio to 51%
+ ret = set_volume_options(self.mnode, 'all',
+ {'cluster.server-quorum-ratio': '51%'})
+ self.assertTrue(ret, "Failed to set server quorum ratio on %s"
+ % self.servers)
+ g.log.info("Able to set server quorum ratio successfully on %s",
+ self.servers)
# stopping the volume and Cleaning up the volume
ret = self.cleanup_volume()