From 26a7ec0c8a4c215791369d8650cd17d41317aefe Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 26 Sep 2017 18:35:42 -0400 Subject: [PATCH] mgr/balancer: note root id in Eval Signed-off-by: Sage Weil --- src/pybind/mgr/balancer/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 8d8d6a74810b..612fe6b4a60a 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] = [] -- 2.47.3