]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: log exceptions in daemon actions
authorSage Weil <sage@newdream.net>
Thu, 28 Oct 2021 21:36:53 +0000 (17:36 -0400)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 12 Sep 2022 17:03:32 +0000 (17:03 +0000)
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/serve.py

index e4dd70d768c5c413abba44b16266caf3d23f39ee..8b3c205a4e48df1c1669908470f2afaec25431cd 100644 (file)
@@ -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]