qa: add max_mds thrash test

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2018-04-14 11:36:15 -07:00
parent 1dc5b62557
commit dde9ee1628
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View 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