]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/dashboard: fix tasks.mgr.dashboard.test_health.HealthTest
authorNizamudeen A <nia@redhat.com>
Mon, 28 Oct 2024 05:45:25 +0000 (11:15 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 13 Mar 2025 06:01:01 +0000 (11:31 +0530)
as per: https://tracker.ceph.com/issues/47612#note-14

Fixes: https://tracker.ceph.com/issues/47612
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 79d61bbb58cb34f9da678e37b4373fc84bd393f5)

qa/tasks/mgr/dashboard/helper.py

index e6a7c35a23db85618cc0ef3bdee6284a90e498da..10ce9218fd5a36cc73b08517c6e741f44766c9b1 100644 (file)
@@ -220,13 +220,11 @@ class DashboardTestCase(MgrTestCase):
 
             # To avoid any issues with e.g. unlink bugs, we destroy and recreate
             # the filesystem rather than just doing a rm -rf of files
-            cls.mds_cluster.mds_stop()
-            cls.mds_cluster.mds_fail()
             cls.mds_cluster.delete_all_filesystems()
+            cls.mds_cluster.mds_restart() # to reset any run-time configs, etc.
             cls.fs = None  # is now invalid!
 
             cls.fs = cls.mds_cluster.newfs(create=True)
-            cls.fs.mds_restart()
 
             # In case some test messed with auth caps, reset them
             # pylint: disable=not-an-iterable