From: Sage Weil Date: Tue, 26 Sep 2017 22:35:42 +0000 (-0400) Subject: mgr/balancer: note root id in Eval X-Git-Tag: v13.0.1~320^2~17 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=26a7ec0c8a4c215791369d8650cd17d41317aefe;p=ceph-ci.git mgr/balancer: note root id in Eval Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 8d8d6a74810..612fe6b4a60 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -80,6 +80,7 @@ class Plan: class Eval: + root_ids = {} # root name -> id pool_name = {} # pool id -> pool name pool_id = {} # pool name -> id pool_roots = {} # pool name -> root name @@ -356,6 +357,7 @@ class Module(MgrModule): roots = [] for rootid in rootids: root = ms.crush.get_item_name(rootid) + pe.root_ids[root] = rootid roots.append(root) ls = ms.osdmap.get_pools_by_take(rootid) pe.root_pools[root] = []