]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add max_mds thrash test
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 14 Apr 2018 18:36:15 +0000 (11:36 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 17 Apr 2018 18:26:56 +0000 (11:26 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/test_failover.py

index dac5e0b58eef3edd9de6ee332a25a705ae9b8325..2800f97911a9d6df848c1887a7f1b15a59bd0ddf 100644 (file)
@@ -134,6 +134,18 @@ class TestClusterResize(CephFSTestCase):
         finally:
             log.info("status = {0}".format(status))
 
+    def test_thrash(self):
+        """
+        Test that thrashing max_mds does not fail.
+        """
+
+        max_mds = 2
+        for i in range(0, 100):
+            self.fs.set_max_mds(max_mds)
+            max_mds = (max_mds+1)%3+1
+
+        self.fs.wait_for_daemons(timeout=90)
+
 class TestFailover(CephFSTestCase):
     CLIENTS_REQUIRED = 1
     MDSS_REQUIRED = 2