From 41a1df1b96903bf283cf4ffc40e3d18eb54c447e Mon Sep 17 00:00:00 2001 From: Daniel Pivonka Date: Fri, 26 Mar 2021 15:13:18 -0400 Subject: [PATCH] doc/cephadm: fix rgw realm and zone flags Signed-off-by: Daniel Pivonka --- doc/cephadm/adoption.rst | 2 +- doc/cephadm/rgw.rst | 4 ++-- doc/mgr/orchestrator.rst | 2 +- src/pybind/mgr/orchestrator/module.py | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/cephadm/adoption.rst b/doc/cephadm/adoption.rst index 9983547b120a..61648fd9e167 100644 --- a/doc/cephadm/adoption.rst +++ b/doc/cephadm/adoption.rst @@ -189,7 +189,7 @@ Adoption process .. prompt:: bash # - ceph orch apply rgw [--rgw-realm=] [--rgw-zone=] [--port=] [--ssl] [--placement=] + ceph orch apply rgw [--realm=] [--zone=] [--port=] [--ssl] [--placement=] where ** can be a simple daemon count, or a list of specific hosts (see :ref:`orchestrator-cli-placement-spec`), and the diff --git a/doc/cephadm/rgw.rst b/doc/cephadm/rgw.rst index d4ba682cc3e7..fd26c4e6b1f8 100644 --- a/doc/cephadm/rgw.rst +++ b/doc/cephadm/rgw.rst @@ -24,7 +24,7 @@ To deploy a set of radosgw daemons, with an arbitrary service name .. prompt:: bash # - ceph orch apply rgw ** [--rgw-realm=**] [--rgw-zone=**] --placement="** [** ...]" + ceph orch apply rgw ** [--realm=**] [--zone=**] --placement="** [** ...]" Trivial setup ------------- @@ -57,7 +57,7 @@ To deploy RGWs serving the multisite *myorg* realm and the *us-east-1* zone on .. prompt:: bash # - ceph orch apply rgw east --rgw-realm=myorg --rgw-zone=us-east-1 --placement="2 myhost1 myhost2" + ceph orch apply rgw east --realm=myorg --zone=us-east-1 --placement="2 myhost1 myhost2" Note that in a multisite situation, cephadm only deploys the daemons. It does not create or update the realm or zone configurations. To create a new realm and zone, you need to do diff --git a/doc/mgr/orchestrator.rst b/doc/mgr/orchestrator.rst index 2bffbdd0590f..ca35126bc241 100644 --- a/doc/mgr/orchestrator.rst +++ b/doc/mgr/orchestrator.rst @@ -103,7 +103,7 @@ The ``name`` parameter is an identifier of the group of instances: Creating/growing/shrinking/removing services:: ceph orch apply mds [--placement=] [--dry-run] - ceph orch apply rgw [--rgw-realm=] [--rgw-zone=] [--port=] [--ssl] [--placement=] [--dry-run] + ceph orch apply rgw [--realm=] [--zone=] [--port=] [--ssl] [--placement=] [--dry-run] ceph orch apply nfs [--namespace=] [--placement=] [--dry-run] ceph orch rm [--force] diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 9eb3c5b1acfa..fcfc245990c2 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -1061,8 +1061,8 @@ Usage: @_cli_write_command('orch apply rgw') def _apply_rgw(self, svc_id: str, - realm_name: Optional[str] = None, - zone_name: Optional[str] = None, + realm: Optional[str] = None, + zone: Optional[str] = None, port: Optional[int] = None, ssl: bool = False, placement: Optional[str] = None, @@ -1076,8 +1076,8 @@ Usage: spec = RGWSpec( service_id=svc_id, - rgw_realm=realm_name, - rgw_zone=zone_name, + rgw_realm=realm, + rgw_zone=zone, rgw_frontend_port=port, ssl=ssl, placement=PlacementSpec.from_string(placement), -- 2.47.3