]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: wait-until-healthy
authorSage Weil <sage@redhat.com>
Tue, 12 Nov 2019 22:16:09 +0000 (22:16 +0000)
committerSage Weil <sage@redhat.com>
Thu, 21 Nov 2019 16:46:54 +0000 (10:46 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph2.py

index 77982304dd29f7e40f46f7a8b20f1020b7ecaca4..667f4eead80887efedba38a27880e9cd65d134ba 100644 (file)
@@ -29,7 +29,7 @@ from teuthology.orchestra.daemon import DaemonGroup
 from tasks.daemonwatchdog import DaemonWatchdog
 
 # these items we use from ceph.py should probably eventually move elsewhere
-from tasks.ceph import get_mons
+from tasks.ceph import get_mons, healthy
 
 CEPH_ROLE_TYPES = ['mon', 'mgr', 'osd', 'mds', 'rgw']
 
@@ -700,6 +700,9 @@ def task(ctx, config):
         )
 
         try:
+            if config.get('wait-for-healthy', True):
+                healthy(ctx=ctx, config=config)
+
             log.info('Setup complete, yielding')
             yield