]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix daemon restart between tests
authorJohn Spray <john.spray@redhat.com>
Wed, 31 May 2017 10:59:39 +0000 (06:59 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 31 May 2017 22:00:43 +0000 (18:00 -0400)
Previously, calling mds_stop without mds_fail meant
that if the filesystem creation was not quick, then
we would see those daemons go laggy.  This starts
to trigger failures now that we have cluster log
messages that fire when a daemon gets failed out
due to being laggy.

Signed-off-by: John Spray <john.spray@redhat.com>
qa/tasks/cephfs/cephfs_test_case.py

index 3f03b1d3e3c4ee244369a97c1e7b148afa9ce6fa..72e8e9f03c01202c011c22d79752384683446dec 100644 (file)
@@ -102,6 +102,7 @@ class CephFSTestCase(CephTestCase):
         # To avoid any issues with e.g. unlink bugs, we destroy and recreate
         # the filesystem rather than just doing a rm -rf of files
         self.mds_cluster.mds_stop()
+        self.mds_cluster.mds_fail()
         self.mds_cluster.delete_all_filesystems()
         self.fs = None # is now invalid!