From 9852b49dbb4be80b11e3f5fe172c6c9f7f3d4acd Mon Sep 17 00:00:00 2001 From: Stefan Priebe Date: Wed, 22 Aug 2018 08:33:04 +0200 Subject: [PATCH] mgr: balancer: deepcopy best plan - otherwise we get latest Fixes: http://tracker.ceph.com/issues/27000 Signed-off-by: Stefan Priebe --- src/pybind/mgr/balancer/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index b8cbb511ab39..ca090516c99d 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -881,8 +881,8 @@ class Module(MgrModule): else: bad_steps = 0 best_pe = next_pe - best_ws = next_ws - best_ow = next_ow + best_ws = copy.deepcopy(next_ws) + best_ow = copy.deepcopy(next_ow) if best_pe.score == 0: break left -= 1 -- 2.47.3