summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-01-14 19:25:29 +0530
committerVijay Avuthu <vavuthu@redhat.com>2019-01-22 04:38:28 +0000
commit094caab49b43bbc5afe72745b858f64d7fd19fe1 (patch)
tree631f81e1cd0387ac6191fc2da221ef9aedb1ba20
parent9b07ecd171c58d53e04772e54bc27807274b51c9 (diff)
Reverting back quorum value to 51%
Change-Id: I7494b877dff64e195a3517af0176e2a00fa2a86c Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
-rw-r--r--tests/functional/glusterd/test_brick_status_when_quorum_not_met.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py b/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
index b7a0f58..b52bd0b 100644
--- a/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
+++ b/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
@@ -22,7 +22,7 @@ from time import sleep
from glusto.core import Glusto as g
from glustolibs.gluster.exceptions import ExecutionError
from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on
-from glustolibs.gluster.volume_ops import set_volume_options, volume_reset
+from glustolibs.gluster.volume_ops import set_volume_options
from glustolibs.gluster.gluster_init import (stop_glusterd, start_glusterd,
is_glusterd_running)
from glustolibs.gluster.brick_libs import (are_bricks_offline,
@@ -68,11 +68,13 @@ class TestBrickStatusWhenQuorumNotMet(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 quorum ratio to 51 percentage on "
+ "servers %s" % self.servers)
+ g.log.info("Able to set server quorum ratio to 51 percentage "
+ "on servers %s", self.servers)
# stopping the volume and Cleaning up the volume
ret = self.cleanup_volume()