]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/ceph: create a CephManager per cluster
authorJosh Durgin <jdurgin@redhat.com>
Fri, 18 Mar 2016 03:18:21 +0000 (20:18 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Fri, 20 May 2016 18:08:52 +0000 (11:08 -0700)
Thrashings tasks will be updated to use ctx.managers indexed by
cluster later.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 25ff14af7421bfbb91c5e60f51fe6a6f924ec30e)

tasks/ceph.py

index 4abd429f341fe01432cd31ba89b99c712cf36110..792b4dbe50816600764ed253d1cf1e9d1d60eba5 100644 (file)
@@ -1470,10 +1470,12 @@ def task(ctx, config):
                 healthy(ctx=ctx, config=dict(cluster=config['cluster']))
             first_mon = teuthology.get_first_mon(ctx, config, config['cluster'])
             (mon,) = ctx.cluster.only(first_mon).remotes.iterkeys()
-            ctx.manager = CephManager(
+            if not hasattr(ctx, 'managers'):
+                ctx.managers = {}
+            ctx.managers[config['cluster']] = CephManager(
                 mon,
                 ctx=ctx,
-                logger=log.getChild('ceph_manager'),
+                logger=log.getChild('ceph_manager.' + config['cluster']),
             )
             yield
         finally: