]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: Fix logging of exceptions
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 14 Feb 2020 14:32:55 +0000 (15:32 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 18 Feb 2020 12:08:00 +0000 (13:08 +0100)
commitaec7e491dd60cf6c2472be9b0ba09f95149038fc
tree7084f9cefabb750ae53495fea0aa4e179cb65d0b
parentae5d2c6ab23bc84fd50b3289bfd52941822f0d1b
mgr/cephadm: Fix logging of exceptions

`multiprocessing.pool.Pool#map_async` no longer has the exception
context, therefore calling `logging.exception` did not print the exception anymore.

Now, let's call `fail` while we have the exception context.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/orchestrator/_interface.py