From: Patrick Donnelly Date: Sat, 14 Apr 2018 18:36:15 +0000 (-0700) Subject: qa: add max_mds thrash test X-Git-Tag: v13.1.0~200^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dde9ee1628ba7d90d4205cc0e88d6a5d3a68603d;p=ceph.git qa: add max_mds thrash test Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/test_failover.py b/qa/tasks/cephfs/test_failover.py index dac5e0b58eef3..2800f97911a9d 100644 --- a/qa/tasks/cephfs/test_failover.py +++ b/qa/tasks/cephfs/test_failover.py @@ -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