From c2d298a43c5fc8cee8247dfab580b71fb70e05ce Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 8 Sep 2014 12:02:30 +0100 Subject: [PATCH] tasks: wait for mds active before mounting clients To make the logs clearer when trying to work out if/when something went wrong, rather than always having client logs start with some failures. Signed-off-by: John Spray --- tasks/mds_client_limits.py | 1 + tasks/mds_client_recovery.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/mds_client_limits.py b/tasks/mds_client_limits.py index 8ea8849f170ec..34bdea9062b9d 100644 --- a/tasks/mds_client_limits.py +++ b/tasks/mds_client_limits.py @@ -85,6 +85,7 @@ class TestClientLimits(CephFSTestCase): def setUp(self): self.fs.mds_restart() + self.fs.wait_for_daemons() self.mount_a.mount() self.mount_a.wait_until_mounted() self.mount_b.mount() diff --git a/tasks/mds_client_recovery.py b/tasks/mds_client_recovery.py index bb8fe8231484e..6f65575ffdd44 100644 --- a/tasks/mds_client_recovery.py +++ b/tasks/mds_client_recovery.py @@ -36,6 +36,7 @@ class TestClientRecovery(CephFSTestCase): def setUp(self): self.fs.clear_firewall() self.fs.mds_restart() + self.fs.wait_for_daemons() self.mount_a.mount() self.mount_b.mount() self.mount_a.wait_until_mounted() -- 2.39.5