]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/orchestrator: drop $realm.$zone naming convention
authorSage Weil <sage@newdream.net>
Mon, 15 Mar 2021 22:05:45 +0000 (17:05 -0500)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:17 +0000 (07:56 -0500)
commit248e0bcb7a5c93c88da3deca3c72b0d4d78010aa
tree7247bb77f0122fb44ee45369eabf9655dc05e798
parentf22e4fe70681b963f3b317c0c9643ce578f4dcf4
mgr/orchestrator: drop $realm.$zone naming convention

- Let users name the rgw service(s) whatever they like
- Make the rgw_zone and rgw_realm arguments optional, so that they can
  omit them and let radosgw start up in the generic single-cluster
  configuration (whichk, notably, has no realm).
- Continue to set the rgw_realm and rgw_zone options for the daemon(s),
  but only when those values are specified.
- Adjust the CLI accordingly.  Drop the subcluster argument, which was
  only used to generate a service_id.
- Adjust rook. This is actually a simplification and improved mapping onto
  the rook CRD, *except* that for octopus we enforced the realm.zone
  naming *and* realm==zone.  I doubt a single user actually did this
  so it is not be worth dealing with, but we need a special case for
  where there is a . in the service name.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit af0216d93fb522d239b10b5d7d18208ee02fed77)

# Conflicts:
# src/pybind/mgr/rook/rook_cluster.py
  - pacific branch does not have type annotation on apply_objectstore()
src/cephadm/vstart-smoke.sh
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_spec.py
src/pybind/mgr/orchestrator/module.py
src/pybind/mgr/rook/rook_cluster.py
src/python-common/ceph/deployment/service_spec.py
src/python-common/ceph/tests/test_service_spec.py