]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/thrashosds: adjust to per-cluster managers
authorJosh Durgin <jdurgin@redhat.com>
Wed, 23 Mar 2016 20:08:33 +0000 (13:08 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 9 May 2016 18:51:58 +0000 (11:51 -0700)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
tasks/thrashosds.py

index 70912823bcc9245630f6a68fddff3cbc9860346d..a159759c0a49058242e2bf7468e4fb6cbf5dd2a1 100644 (file)
@@ -184,8 +184,9 @@ def task(ctx, config):
                             r=remote.name))
 
     log.info('Beginning thrashosds...')
+    cluster_manager = ctx.managers[cluster]
     thrash_proc = ceph_manager.Thrasher(
-        ctx.manager,
+        cluster_manager,
         config,
         logger=log.getChild('thrasher')
         )
@@ -194,4 +195,4 @@ def task(ctx, config):
     finally:
         log.info('joining thrashosds')
         thrash_proc.do_join()
-        ctx.manager.wait_for_recovery(config.get('timeout', 360))
+        cluster_manager.wait_for_recovery(config.get('timeout', 360))