]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: disallow removing the mon keyring
authorMichael Fritch <mfritch@suse.com>
Fri, 11 Sep 2020 14:10:38 +0000 (08:10 -0600)
committerMichael Fritch <mfritch@suse.com>
Fri, 11 Sep 2020 14:10:38 +0000 (08:10 -0600)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/cephadm/services/cephadmservice.py

index 97cd882775e0a75629887c25c38a31ad76033480..b19e5068e1d3677a852cc447838588604c4ac578 100644 (file)
@@ -294,6 +294,10 @@ class CephService(CephadmService):
         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}')