]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: wait for osds to come up before creating pool
authorSage Weil <sage@redhat.com>
Tue, 11 Jul 2017 03:48:47 +0000 (23:48 -0400)
committerSage Weil <sage@redhat.com>
Wed, 12 Jul 2017 16:52:03 +0000 (12:52 -0400)
Avoid health warnings.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 44e1d0415b89922f2f29774109361233c1697a00..5318643d27a5542af33fb65021077275bf76c482 100644 (file)
@@ -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,