summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost.localdomain>2018-11-30 20:03:02 +0530
committerVijay Avuthu <vavuthu@redhat.com>2018-12-06 06:40:49 +0000
commit7fb5a55f55ade4077cf37fc558308d766ade5f79 (patch)
tree453aa4a1b0d9a19307d748b746e2138a464380dd
parent98b185a744446c611c500e078ed9bddfc2af4098 (diff)
Quorum ratio not reset to default
Earlier quorum ratio is not reset to default which affects the remaining cases.` Change-Id: I5b2e6c23c5b9cd4cfb310534a7ff89a99bf0931b Signed-off-by: root <root@localhost.localdomain>
-rw-r--r--tests/functional/glusterd/test_replace_brick_quorum_not_met.py9
1 files changed, 8 insertions, 1 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 8af7310..da7f7d0 100644
--- a/tests/functional/glusterd/test_replace_brick_quorum_not_met.py
+++ b/tests/functional/glusterd/test_replace_brick_quorum_not_met.py
@@ -26,7 +26,8 @@ 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_create, get_volume_status,
+ volume_reset)
from glustolibs.gluster.gluster_init import (stop_glusterd,
is_glusterd_running,
start_glusterd)
@@ -60,6 +61,12 @@ 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")
+
# stopping the volume and Cleaning up the volume
ret = self.cleanup_volume()
if not ret: