qa/tasks/ceph: wait for osds to come up before creating pool

Avoid health warnings.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-07-10 23:48:47 -04:00
parent 25717f7e84
commit fd39700d55

View 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,