Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
),
True
),
+ (
+ # explicit naming
+ RGWSpec(
+ rgw_realm="realm",
+ rgw_zone="zone",
+ ),
+ DaemonDescription(
+ daemon_type='rgw',
+ daemon_id="realm.zone.a",
+ hostname="smithi028",
+ ),
+ True
+ ),
(
# without host
RGWSpec(
if m:
return m.group(1)
+ if self.daemon_type == 'rgw':
+ v = self.daemon_id.split('.')
+ if len(v) in [3, 4]:
+ return '.'.join(v[0:2])
+
raise OrchestratorError("DaemonDescription: Cannot calculate service_id: " \
f"daemon_id='{self.daemon_id}' hostname='{self.hostname}'")