Skip to content

Commit

Permalink
misc: add cluster param to wait_until_osds_up()
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Apr 11, 2016
1 parent 4e20fe9 commit 91166be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions teuthology/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,9 @@ def wait_until_healthy(ctx, remote):
time.sleep(1)


def wait_until_osds_up(ctx, cluster, remote):
def wait_until_osds_up(ctx, cluster, remote, ceph_cluster='ceph'):
"""Wait until all Ceph OSDs are booted."""
num_osds = num_instances_of_type(cluster, 'osd')
num_osds = num_instances_of_type(cluster, 'osd', ceph_cluster)
testdir = get_testdir(ctx)
while True:
r = remote.run(
Expand All @@ -948,6 +948,7 @@ def wait_until_osds_up(ctx, cluster, remote):
'ceph-coverage',
'{tdir}/archive/coverage'.format(tdir=testdir),
'ceph',
'--cluster', ceph_cluster,
'osd', 'dump', '--format=json'
],
stdout=StringIO(),
Expand Down

0 comments on commit 91166be

Please sign in to comment.