mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
mgr/cephadm: don't cleanup the daemon keyring on failed redeploy
Fixes: https://tracker.ceph.com/issues/49872 Signed-off-by: Melissa Li <li.melissa.kun@gmail.com>
This commit is contained in:
parent
94a0af289c
commit
9b6ae808c6
@ -918,7 +918,8 @@ class CephadmServe:
|
||||
daemon_spec.name(), OrchestratorEvent.ERROR, f'Failed to {what}: {err}')
|
||||
return msg
|
||||
except OrchestratorError:
|
||||
if not reconfig:
|
||||
redeploy = daemon_spec.name() in self.mgr.cache.get_daemon_names()
|
||||
if not reconfig and not redeploy:
|
||||
# we have to clean up the daemon. E.g. keyrings.
|
||||
servict_type = daemon_type_to_service(daemon_spec.daemon_type)
|
||||
dd = daemon_spec.to_daemon_description(DaemonDescriptionStatus.error, 'failed')
|
||||
|
Loading…
Reference in New Issue
Block a user