]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm/schedule: assign/map ranks
authorSage Weil <sage@newdream.net>
Fri, 23 Apr 2021 19:28:13 +0000 (15:28 -0400)
committerSage Weil <sage@newdream.net>
Thu, 3 Jun 2021 12:37:06 +0000 (07:37 -0500)
commitb21977c2f1bbabe1402fb7b9cc659d8162d95e3d
tree161b963bb781704ed70360328384e2e288a18bbd
parenta7ce589bdaa079ad227a84b2f70ec82a50c78f54
mgr/cephadm/schedule: assign/map ranks

If we are passed a rank_map, use it maintain one daemon per rank, where
the ranks are consecutive non-negative integers starting from 0.

A bit of refactoring in place() so that we only do the rank allocations
on slots we are going to use (no more than count).

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit de03942f806cb16e00259f2397446afb9322c3f1)
src/pybind/mgr/cephadm/schedule.py
src/pybind/mgr/cephadm/tests/test_scheduling.py