]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add test for standby-replay disable
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 16 Mar 2021 02:44:23 +0000 (19:44 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 23 Mar 2021 03:09:41 +0000 (20:09 -0700)
Causes all standby-replay daemons to be removed.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 7925394ddfca186cb67156cf585647d5b47b1b67)

qa/tasks/cephfs/test_failover.py

index 85dab456737bfe503b0029faee5949eaff2c54c1..45e343dcd2ae902fa41c2d7363fdf0b142bc2b3a 100644 (file)
@@ -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.