as they are called by the commands
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
0d48b03)
Conflicts:
src/pybind/mgr/balancer/module.py
Cherry-pick notes:
- Conflicts due to missing type annotations in Octopus
self.inc = osdmap.new_incremental()
self.pg_status = {}
+ def dump(self) -> str:
+ return json.dumps(self.inc.dump(), indent=4, sort_keys=True)
+
+ def show(self) -> str:
+ return 'upmap plan'
+
+
class MsPlan(Plan):
"""
Plan with a preloaded MappingState member.
self.initial.raw_pool_stats,
'plan %s final' % self.name)
- def dump(self):
- return json.dumps(self.inc.dump(), indent=4, sort_keys=True)
-
- def show(self):
+ def show(self) -> str:
ls = []
ls.append('# starting osdmap epoch %d' % self.initial.osdmap.get_epoch())
ls.append('# starting crush version %d' %