From: Patrick Donnelly Date: Tue, 16 Mar 2021 02:44:23 +0000 (-0700) Subject: qa: add test for standby-replay disable X-Git-Tag: v17.1.0~2513^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7925394ddfca186cb67156cf585647d5b47b1b67;p=ceph.git qa: add test for standby-replay disable Causes all standby-replay daemons to be removed. Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/test_failover.py b/qa/tasks/cephfs/test_failover.py index 85dab456737b..45e343dcd2ae 100644 --- a/qa/tasks/cephfs/test_failover.py +++ b/qa/tasks/cephfs/test_failover.py @@ -460,6 +460,7 @@ class TestFailover(CephFSTestCase): self.fs.rank_freeze(False, rank=0) class TestStandbyReplay(CephFSTestCase): + CLIENTS_REQUIRED = 0 MDSS_REQUIRED = 4 def _confirm_no_replay(self): @@ -517,6 +518,18 @@ class TestStandbyReplay(CephFSTestCase): time.sleep(30) self._confirm_single_replay() + def test_standby_replay_disable(self): + """ + That turning off allow_standby_replay fails all standby-replay daemons. + """ + + self._confirm_no_replay() + self.fs.set_allow_standby_replay(True) + time.sleep(30) + self._confirm_single_replay() + self.fs.set_allow_standby_replay(False) + self._confirm_no_replay() + def test_standby_replay_singleton_fail(self): """ That failures don't violate singleton constraint.