]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: Make `ceph orch * --refresh` asynchronous
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 4 Aug 2020 12:01:49 +0000 (14:01 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 5 Aug 2020 14:49:17 +0000 (16:49 +0200)
commit7189575404262c0fbb4717f824c022d48ab58fcd
tree7224ae2589f643943c6562efa7092267313daba4
parent45103892520475d02f92f05b7a4f841817820709
mgr/cephadm: Make `ceph orch * --refresh` asynchronous

There is just no way we can allow those calls to be synchornous:

* All CLI commands are blocked, till the refresh completes.
* ^C doesn't help at all, as it just kills the client

Therefore they have to be scheduled in the bg.

Fixes: https://tracker.ceph.com/issues/46813
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py