From: Juan Miguel Olmo Martínez Date: Tue, 1 Jun 2021 15:14:16 +0000 (+0200) Subject: mgr/cephadm: fix errors in command help and documentation X-Git-Tag: v16.2.5~49^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a193ba50ca8c0c3efb5c062c4fedb93f3685933;p=ceph.git mgr/cephadm: fix errors in command help and documentation Resolves: https://tracker.ceph.com/issues/51043 Signed-off-by: Juan Miguel Olmo Martínez (cherry picked from commit cd5584f86b782732bb9f2a4480298a271d639901) --- diff --git a/doc/cephadm/osd.rst b/doc/cephadm/osd.rst index 55ddd4c66167..5c01d038f84f 100644 --- a/doc/cephadm/osd.rst +++ b/doc/cephadm/osd.rst @@ -268,7 +268,7 @@ It is possible to stop queued OSD removals by using the following command: .. prompt:: bash # - ceph orch osd rm stop + ceph orch osd rm stop Example: @@ -288,7 +288,7 @@ Replacing an OSD .. prompt:: bash # - orch osd rm --replace [--force] + orch osd rm --replace [--force] Example: diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 082df699f03e..3e3c0b094619 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -814,24 +814,24 @@ Usage: @_cli_write_command('orch osd rm') def _osd_rm_start(self, - svc_id: List[str], + osd_id: List[str], replace: bool = False, force: bool = False) -> HandleCommandResult: - """Remove OSD services""" - completion = self.remove_osds(svc_id, replace=replace, force=force) + """Remove OSD daemons""" + completion = self.remove_osds(osd_id, replace=replace, force=force) raise_if_exception(completion) return HandleCommandResult(stdout=completion.result_str()) @_cli_write_command('orch osd rm stop') - def _osd_rm_stop(self, svc_id: List[str]) -> HandleCommandResult: + def _osd_rm_stop(self, osd_id: List[str]) -> HandleCommandResult: """Cancel ongoing OSD removal operation""" - completion = self.stop_remove_osds(svc_id) + completion = self.stop_remove_osds(osd_id) raise_if_exception(completion) return HandleCommandResult(stdout=completion.result_str()) @_cli_write_command('orch osd rm status') def _osd_rm_status(self, format: Format = Format.plain) -> HandleCommandResult: - """status of OSD removal operation""" + """Status of OSD removal operation""" completion = self.remove_osds_status() raise_if_exception(completion) report = completion.result