]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc: add cluster param to wait_until_healthy()
authorJosh Durgin <jdurgin@redhat.com>
Thu, 17 Mar 2016 01:23:06 +0000 (18:23 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 11 Apr 2016 21:36:42 +0000 (14:36 -0700)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
teuthology/misc.py

index 0c38ba8a438ab5ceb5ad22eef81944910450c08f..7fad219c9b3af701eb4ac3c5a3d2f0d22b2949ca 100644 (file)
@@ -912,7 +912,7 @@ def get_scratch_devices(remote):
     return retval
 
 
-def wait_until_healthy(ctx, remote):
+def wait_until_healthy(ctx, remote, ceph_cluster='ceph'):
     """
     Wait until a Ceph cluster is healthy. Give up after 15min.
     """
@@ -925,6 +925,7 @@ def wait_until_healthy(ctx, remote):
                     'ceph-coverage',
                     '{tdir}/archive/coverage'.format(tdir=testdir),
                     'ceph',
+                    '--cluster', ceph_cluster,
                     'health',
                 ],
                 stdout=StringIO(),