]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: show failure cause during placement 38155/head
authorMichael Fritch <mfritch@suse.com>
Thu, 12 Nov 2020 22:09:42 +0000 (15:09 -0700)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 18 Nov 2020 10:59:28 +0000 (11:59 +0100)
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>
(cherry picked from commit d0c779007d1ef0f93b376e9c0f852d62301e876e)

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: