From: John Spray Date: Thu, 17 Sep 2015 09:14:07 +0000 (+0100) Subject: tasks/ceph: wait for MDS to be active when creating a cluster X-Git-Tag: v10.2.6~165^2^2~362 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eab70197a67397797ce7bd81c667900dbecdabd4;p=ceph.git tasks/ceph: wait for MDS to be active when creating a cluster This is the correct implementation of 685d76a77ca16ca601a99148ef507cfde1fb3593, merged while broken in ff1655cb57793f18698919f5284b1f207893ff8f and reverted in 4cccde634fb10b58e4eb050286b945ed218e6f62. Signed-off-by: John Spray --- diff --git a/tasks/ceph.py b/tasks/ceph.py index b8c0fba13679..800cdf281cc9 100644 --- a/tasks/ceph.py +++ b/tasks/ceph.py @@ -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.