From: Stefan Priebe Date: Wed, 22 Aug 2018 06:33:04 +0000 (+0200) Subject: mgr: balancer: deepcopy best plan - otherwise we get latest X-Git-Tag: v14.0.1~496^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9852b49dbb4be80b11e3f5fe172c6c9f7f3d4acd;p=ceph-ci.git mgr: balancer: deepcopy best plan - otherwise we get latest Fixes: http://tracker.ceph.com/issues/27000 Signed-off-by: Stefan Priebe --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index b8cbb511ab3..ca090516c99 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