tasks/ceph: make wait_for_osds_up cluster-aware

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
Josh Durgin 2016-03-24 20:22:16 -07:00
parent ef619062be
commit bb76deaf57

View File

@ -1127,7 +1127,8 @@ def wait_for_osds_up(ctx, config):
:param config: Configuration
"""
log.info('Waiting until ceph osds are all up...')
firstmon = teuthology.get_first_mon(ctx, config)
cluster_name = config.get('cluster', 'ceph')
firstmon = teuthology.get_first_mon(ctx, config, cluster_name)
(mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys()
teuthology.wait_until_osds_up(
ctx,