Skip to content

Commit

Permalink
mgr/cephadm: disallow removing the mon keyring
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fritch <[email protected]>
  • Loading branch information
mgfritch committed Sep 11, 2020
1 parent 11bbfd5 commit 2266cc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pybind/mgr/cephadm/services/cephadmservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ def remove_keyring(self, daemon: DaemonDescription):
daemon_id: str = daemon.daemon_id
host: str = daemon.hostname

if daemon_id == 'mon':
# do not remove the mon keyring
return

entity = self.get_auth_entity(daemon_id, host=host)

logger.info(f'Remove keyring: {entity}')
Expand Down

0 comments on commit 2266cc1

Please sign in to comment.