From: Daniel Pivonka Date: Fri, 26 Mar 2021 19:13:18 +0000 (-0400) Subject: doc/cephadm: fix rgw realm and zone flags X-Git-Tag: v17.1.0~2451^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40447%2Fhead;p=ceph.git doc/cephadm: fix rgw realm and zone flags Signed-off-by: Daniel Pivonka --- 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),