From: Patrick Donnelly Date: Mon, 3 Apr 2023 16:10:56 +0000 (-0400) Subject: qa: wait for MDSMonitor tick to replace daemons X-Git-Tag: v19.0.0~1416^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50844%2Fhead;p=ceph.git qa: wait for MDSMonitor tick to replace daemons Fixes: https://tracker.ceph.com/issues/59297 Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/test_failover.py b/qa/tasks/cephfs/test_failover.py index 8fb9f2775a935..4b90d2383bc0b 100644 --- a/qa/tasks/cephfs/test_failover.py +++ b/qa/tasks/cephfs/test_failover.py @@ -76,7 +76,8 @@ class TestClusterAffinity(CephFSTestCase): self._change_target_state(target, names[0], {'join_fscid': self.fs.id}) self._change_target_state(target, names[1], {'join_fscid': self.fs.id}) self._reach_target(target) - status = self.fs.status() + time.sleep(5) # MDSMonitor tick + status = self.fs.wait_for_daemons() active = self.fs.get_active_names(status=status)[0] self.assertIn(active, names) self.config_rm('mds.'+active, 'mds_join_fs')