mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
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:
parent
25717f7e84
commit
fd39700d55
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user