]> git.apps.os.sepia.ceph.com Git - ceph.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>
Fri, 21 Aug 2020 11:04:01 +0000 (13:04 +0200)
commitddd78a1102c5a695512b60fa45744bcfee4723f3
treee339f5a948ea60e5a3cb66df0028784258fa0b13
parentf129a9a8f402305488556f42df53667a60a0eddd
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>
(cherry picked from commit 7189575404262c0fbb4717f824c022d48ab58fcd)
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py