From fd39700d550e125090b965a57eee9f123cf3f01a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 10 Jul 2017 23:48:47 -0400 Subject: [PATCH] qa/tasks/ceph: wait for osds to come up before creating pool Avoid health warnings. Signed-off-by: Sage Weil --- qa/tasks/ceph.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 44e1d0415b899..5318643d27a55 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -331,6 +331,13 @@ def create_rbd_pool(ctx, config): cluster_name = config['cluster'] first_mon = teuthology.get_first_mon(ctx, config, cluster_name) (mon_remote,) = ctx.cluster.only(first_mon).remotes.iterkeys() + log.info('Waiting for OSDs to come up') + teuthology.wait_until_osds_up( + ctx, + cluster=ctx.cluster, + remote=mon_remote, + ceph_cluster=cluster_name, + ) log.info('Creating RBD pool') mon_remote.run( args=['sudo', 'ceph', '--cluster', cluster_name, -- 2.39.5