]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: stop DaemonWatchdog for each cluster in daemon roles 29821/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 22 Aug 2019 15:59:43 +0000 (08:59 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 22 Aug 2019 16:00:49 +0000 (09:00 -0700)
Fixes: https://tracker.ceph.com/issues/41398
Introduced-by: 08b99eef277b00a3ea423cbf085bd114a805813f
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/ceph.py

index 65383282f89114f2c85a933a7f3501a968501ba4..e66578fc6e632866490d9b8271b2cde8ff5f0247 100644 (file)
@@ -1675,12 +1675,18 @@ def stop(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).stop()
+        clusters.add(cluster)
+
+
+    for cluster in clusters:
+        ctx.ceph[cluster].watchdog.stop()
+        ctx.ceph[cluster].watchdog.join()
 
-    ctx.ceph[config['cluster']].watchdog.stop()
-    ctx.ceph[config['cluster']].watchdog.join()
     yield