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: v16.2.14~39^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F52237%2Fhead;p=ceph.git qa: wait for MDSMonitor tick to replace daemons Fixes: https://tracker.ceph.com/issues/59297 Signed-off-by: Patrick Donnelly (cherry picked from commit 1814570b8f2edc488b88b69f3a62daabd4fbca7c) --- diff --git a/qa/tasks/cephfs/test_failover.py b/qa/tasks/cephfs/test_failover.py index bc1657b09684..371774b5b01f 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')