mirror of
https://github.com/ceph/ceph
synced 2025-03-29 23:09:47 +00:00
mgr/cephadm: log exceptions in daemon actions
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
b723bd03b6
commit
68abdc2147
@ -938,11 +938,13 @@ class CephadmServe:
|
||||
if self.mgr.cache.rm_scheduled_daemon_action(dd.hostname, dd.name()):
|
||||
self.mgr.cache.save_host(dd.hostname)
|
||||
except OrchestratorError as e:
|
||||
self.log.exception(e)
|
||||
self.mgr.events.from_orch_error(e)
|
||||
if dd.daemon_type in daemons_post:
|
||||
del daemons_post[dd.daemon_type]
|
||||
# continue...
|
||||
except Exception as e:
|
||||
self.log.exception(e)
|
||||
self.mgr.events.for_daemon_from_exception(dd.name(), e)
|
||||
if dd.daemon_type in daemons_post:
|
||||
del daemons_post[dd.daemon_type]
|
||||
|
Loading…
Reference in New Issue
Block a user