summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBala Konda Reddy M <bmekala@redhat.com>2018-12-27 18:29:29 +0530
committerVijay Avuthu <vavuthu@redhat.com>2019-01-18 17:41:04 +0000
commit46ca653ff7da41b8e8c222a18a82ae21ec99f397 (patch)
tree90bbff06f136abba06eaf1a3c8ee0b1169d00ea2
parent0a7ba49b628c13a5efc8071f72c94e43c664d319 (diff)
Reverting the quorum ratio to 51
Change-Id: Iac928311281fac68a5e0c773d87842a35c8d499e Signed-off-by: Bala Konda Reddy M <bmekala@redhat.com>
-rw-r--r--tests/functional/glusterd/test_quorum_syslog.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/functional/glusterd/test_quorum_syslog.py b/tests/functional/glusterd/test_quorum_syslog.py
index cefa328..4e66afd 100644
--- a/tests/functional/glusterd/test_quorum_syslog.py
+++ b/tests/functional/glusterd/test_quorum_syslog.py
@@ -100,6 +100,16 @@ class TestQuorumRelatedMessagesInSyslog(GlusterBaseClass):
if peers_not_connected:
raise ExecutionError("Servers are not in peer probed state")
+ # Reverting back the quorum ratio to 51%
+ self.quorum_perecent = {'cluster.server-quorum-ratio': '51%'}
+ ret = set_volume_options(self.mnode, 'all', self.quorum_perecent)
+ if not ret:
+ raise ExecutionError(ret, "gluster volume set all cluster"
+ ".server-quorum- ratio percentage Failed"
+ " :%s" % self.servers)
+ g.log.info("gluster volume set all cluster.server-quorum-ratio 51"
+ "percentage enabled successfully :%s", self.servers)
+
# stopping the volume and Cleaning up the volume
for volume in self.volume_list:
ret = cleanup_volume(self.mnode, volume)
@@ -283,7 +293,6 @@ class TestQuorumRelatedMessagesInSyslog(GlusterBaseClass):
"messages in :%s" % self.log_messages)
g.log.info("regain messages recorded for two volumes successfully "
"after glusterd services start in :%s", self.log_messages)
-
# Finding quorum regain message-id count difference between before
# and after glusterd services start in /var/log/glusterfs/glusterd.log
count_diff = (int(after_glusterd_start_glusterd_id_count) -