From c97b92adab9f3dc197d213823536205df0000bb8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 Nov 2019 22:16:09 +0000 Subject: [PATCH] qa/tasks/ceph: wait-until-healthy Signed-off-by: Sage Weil --- qa/tasks/ceph2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qa/tasks/ceph2.py b/qa/tasks/ceph2.py index 77982304dd29f..667f4eead8088 100644 --- a/qa/tasks/ceph2.py +++ b/qa/tasks/ceph2.py @@ -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 -- 2.39.5