]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/ceph: wait for MDS to be active when creating a cluster
authorJohn Spray <john.spray@redhat.com>
Thu, 17 Sep 2015 09:14:07 +0000 (10:14 +0100)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 21 Sep 2015 23:05:51 +0000 (16:05 -0700)
This is the correct implementation of 685d76a77ca16ca601a99148ef507cfde1fb3593,
merged while broken in ff1655cb57793f18698919f5284b1f207893ff8f and
reverted in 4cccde634fb10b58e4eb050286b945ed218e6f62.

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

index b8c0fba13679605a402819af29fcc1596465c2a1..800cdf281cc9231bf7176118bcb4ed8dff26c1cb 100644 (file)
@@ -1051,6 +1051,11 @@ def healthy(ctx, config):
         remote=mon0_remote,
         )
 
+    if ctx.cluster.only(teuthology.is_type('mds')).remotes:
+        # Some MDSs exist, wait for them to be healthy
+        ceph_fs = Filesystem(ctx)
+        ceph_fs.wait_for_daemons(timeout=300)
+
 def wait_for_osds_up(ctx, config):
     """
     Wait for all osd's to come up.