From: Juan Miguel Olmo Martínez Date: Tue, 11 Dec 2018 19:29:46 +0000 (+0100) Subject: mgr/ansible: Add create/remove osd functionality X-Git-Tag: v14.1.0~294^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d6520c86c8c92fc34db79e31f4cee6b0f46c2da;p=ceph.git mgr/ansible: Add create/remove osd functionality - Create/remove osd functionality - Addressed typo find by @tchaikov - Improved code in functional orchestrator methods following @leseb suggestions - Addressed @sebastian-philipp suggestions - Use specification for create OSD in all the orchestrators - fixed errors calling HandleCommandResult Signed-off-by: Juan Miguel Olmo Martínez --- diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index b7c1c4617ac3..1ec99d032e17 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -234,8 +234,8 @@ class OrchestratorCli(orchestrator.OrchestratorClientMixin, MgrModule): completion = self.create_osds(spec, all_hosts) self._orchestrator_wait([completion]) - - return HandleCommandResult() + #return result + return HandleCommandResult(stdout=completion.result) def _add_stateless_svc(self, svc_type, spec): completion = self.add_stateless_service(svc_type, spec) @@ -408,4 +408,3 @@ class OrchestratorCli(orchestrator.OrchestratorClientMixin, MgrModule): return self._status() else: raise NotImplementedError() -