From: Michael Fritch Date: Thu, 12 Nov 2020 22:09:42 +0000 (-0700) Subject: mgr/cephadm: show failure cause during placement X-Git-Tag: v16.1.0~583^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0c779007d1ef0f93b376e9c0f852d62301e876e;p=ceph.git 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 --- 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: