From b3097bf8b020e8b6ae877fe2cde961e13567f8da Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 1 Nov 2019 11:51:30 -0500 Subject: [PATCH] mgr/ssh: rgw: ensure map rgws are mapped to the zone Signed-off-by: Sage Weil --- src/pybind/mgr/ssh/module.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pybind/mgr/ssh/module.py b/src/pybind/mgr/ssh/module.py index f8bee40150f..1144278bee2 100644 --- a/src/pybind/mgr/ssh/module.py +++ b/src/pybind/mgr/ssh/module.py @@ -974,6 +974,13 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator): def add_rgw(self, spec): if len(spec.placement.nodes) < spec.count: raise RuntimeError("must specify at least %d hosts" % spec.count) + # ensure rgw_zone is set for these daemons + ret, out, err = self.mon_command({ + 'prefix': 'config set', + 'who': 'client.rgw.' + spec.name, + 'name': 'rgw_zone', + 'value': spec.name, + }) daemons = self._get_services('rgw') results = [] num_added = 0 -- 2.39.5