]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tasks/ceph: make restart subtask cluster-aware
authorJosh Durgin <jdurgin@redhat.com>
Fri, 25 Mar 2016 03:24:01 +0000 (20:24 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 9 May 2016 18:51:59 +0000 (11:51 -0700)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
tasks/ceph.py

index 449208edcabef1de8d2c66d14ffcadac3a79a00c..40bd1d1ac04af864f89ee184abfbc93b24efe7fb 100644 (file)
@@ -1212,14 +1212,18 @@ def restart(ctx, config):
         config = {'daemons': config}
 
     daemons = ctx.daemons.resolve_role_list(config.get('daemons', None), CEPH_ROLE_TYPES, True)
+    clusters = set()
     for role in daemons:
         cluster, type_, id_ = teuthology.split_role(role)
         ctx.daemons.get_daemon(type_, id_, cluster).restart()
+        clusters.add(cluster)
 
     if config.get('wait-for-healthy', True):
-        healthy(ctx=ctx, config=None)
+        for cluster in clusters:
+            healthy(ctx=ctx, config=dict(cluster=cluster))
     if config.get('wait-for-osds-up', False):
-        wait_for_osds_up(ctx=ctx, config=None)
+        for cluster in clusters:
+            wait_for_osds_up(ctx=ctx, config=dict(cluster=cluster))
     yield