]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm/osd: update removal report immediately
authorKiefer Chang <kiefer.chang@suse.com>
Tue, 3 Mar 2020 08:58:40 +0000 (16:58 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Mon, 9 Mar 2020 06:50:37 +0000 (14:50 +0800)
commit979195e1392965046ad1ff4581c16e7ff4c804e2
tree81946c2772209704a2e4edcaca4a0e4646b9934d
parentab2488773626d40fb1f8345a99f4bbd6712c0fd4
mgr/cephadm/osd: update removal report immediately

Currently, the removal report is updated after entering the main serve()
loop. This tiny window makes clients (like Dashboard) fail to poll the
result. Refresh the report data immediately after scheduling OSD for
removal.

The report structure is changed from Dict to Set because:
- The key is `OSDRemoval` instance, which make it hard to use.
- More consistent with orchestrator interfaces: most calls return a list.

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/osd.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/orchestrator/module.py