From d0c779007d1ef0f93b376e9c0f852d62301e876e Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Thu, 12 Nov 2020 15:09:42 -0700 Subject: [PATCH] mgr/cephadm: show failure cause during placement the host and exception cause are not shown in the event log when a daemon placement failure occurs Signed-off-by: Michael Fritch --- src/pybind/mgr/cephadm/serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index a9ade9c7ba9..1e91a33abb4 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -500,7 +500,7 @@ class CephadmServe: except (RuntimeError, OrchestratorError) as e: self.mgr.events.for_service(spec, 'ERROR', f"Failed while placing {daemon_type}.{daemon_id}" - "on {host}: {e}") + f"on {host}: {e}") # only return "no change" if no one else has already succeeded. # later successes will also change to True if r is None: -- 2.47.3