Skip to content

Commit

Permalink
mgr/cephadm: add rotate support for rgw, crash, nfs, rbd-mirror, iscsi
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas authored and rzarzynski committed Sep 12, 2022
1 parent 8ca919f commit 4916fd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pybind/mgr/cephadm/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ def _rotate_daemon_key(self, daemon_spec: CephadmDaemonDeploySpec) -> str:
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)
Expand Down Expand Up @@ -2107,7 +2107,8 @@ def daemon_action(self, action: str, daemon_name: str, image: Optional[str] = No
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}'
)
Expand Down

0 comments on commit 4916fd2

Please sign in to comment.