From c03fc983ac2cedff609e193b8ac76143c30c65de Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 15 Mar 2021 19:44:23 -0700 Subject: [PATCH] qa: add test for standby-replay disable Causes all standby-replay daemons to be removed. Signed-off-by: Patrick Donnelly (cherry picked from commit 7925394ddfca186cb67156cf585647d5b47b1b67) --- qa/tasks/cephfs/test_failover.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qa/tasks/cephfs/test_failover.py b/qa/tasks/cephfs/test_failover.py index 85dab456737bf..45e343dcd2ae9 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. -- 2.39.5