From: Sage Weil Date: Tue, 11 Jul 2017 03:48:47 +0000 (-0400) Subject: qa/tasks/ceph: wait for osds to come up before creating pool X-Git-Tag: v12.1.1~58^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd39700d550e125090b965a57eee9f123cf3f01a;p=ceph.git qa/tasks/ceph: wait for osds to come up before creating pool Avoid health warnings. Signed-off-by: Sage Weil --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 44e1d0415b89..5318643d27a5 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,