]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ansible: Add create/remove osd functionality
authorJuan Miguel Olmo Martínez <jolmomar@redhat.com>
Tue, 11 Dec 2018 19:29:46 +0000 (20:29 +0100)
committerJuan Miguel Olmo Martínez <jolmomar@redhat.com>
Wed, 23 Jan 2019 11:12:43 +0000 (12:12 +0100)
- Create/remove osd functionality
- Addressed typo find by @tchaikov
- Improved code in functional orchestrator methods following @leseb suggestions
- Addressed @sebastian-philipp  suggestions
- Use <drive group> specification for create OSD in all the orchestrators
- fixed errors calling HandleCommandResult

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index b7c1c4617ac35af174d8f508acf73f468c9a8616..1ec99d032e17e9bd71caf44f86dc93cc95dad869 100644 (file)
@@ -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()
-