self.log.info(f'Rotating authentication key for {daemon_spec.name()}')
rc, out, err = self.mon_command({
'prefix': 'auth get-or-create-pending',
- 'entity': daemon_spec.name(),
+ 'entity': daemon_spec.entity_name(),
'format': 'json',
})
j = json.loads(out)
f'Unable to schedule redeploy for {daemon_name}: No standby MGRs')
if action == 'rotate-key':
- if d.daemon_type not in ['mgr', 'osd', 'mds']:
+ if d.daemon_type not in ['mgr', 'osd', 'mds',
+ 'rgw', 'crash', 'nfs', 'rbd-mirror', 'iscsi']:
raise OrchestratorError(
f'key rotation not supported for {d.daemon_type}'
)