summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/cephadm/services/cephadmservice.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/cephadm/services/cephadmservice.py')
-rw-r--r--src/pybind/mgr/cephadm/services/cephadmservice.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pybind/mgr/cephadm/services/cephadmservice.py b/src/pybind/mgr/cephadm/services/cephadmservice.py
index eb9a1c838a6..9043577bc5a 100644
--- a/src/pybind/mgr/cephadm/services/cephadmservice.py
+++ b/src/pybind/mgr/cephadm/services/cephadmservice.py
@@ -984,10 +984,9 @@ class RgwService(CephService):
def allow_colo(self) -> bool:
return True
- def config(self, spec: RGWSpec) -> None: # type: ignore
+ def set_realm_zg_zone(self, spec: RGWSpec) -> None:
assert self.TYPE == spec.service_type
- # set rgw_realm rgw_zonegroup and rgw_zone, if present
if spec.rgw_realm:
ret, out, err = self.mgr.check_mon_command({
'prefix': 'config set',
@@ -1010,6 +1009,12 @@ class RgwService(CephService):
'value': spec.rgw_zone,
})
+ def config(self, spec: RGWSpec) -> None: # type: ignore
+ assert self.TYPE == spec.service_type
+
+ # set rgw_realm rgw_zonegroup and rgw_zone, if present
+ self.set_realm_zg_zone(spec)
+
if spec.generate_cert and not spec.rgw_frontend_ssl_certificate:
# generate a self-signed cert for the rgw service
cert, key = self.mgr.cert_mgr.ssl_certs.generate_root_cert(custom_san_list=spec.zonegroup_hostnames)