]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: show failure cause during placement 38053/head
authorMichael Fritch <mfritch@suse.com>
Thu, 12 Nov 2020 22:09:42 +0000 (15:09 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 13 Nov 2020 00:00:17 +0000 (17:00 -0700)
the host and exception cause are not shown in the event log when a
daemon placement failure occurs

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/cephadm/serve.py

index a9ade9c7ba9f28151af013397035fcd0946c3d98..1e91a33abb468921774e49c371629a79ee93b778 100644 (file)
@@ -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: