]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm/schedule: return DaemonPlacement instead of HostPlacementSpec
authorSage Weil <sage@newdream.net>
Wed, 10 Mar 2021 17:24:32 +0000 (12:24 -0500)
committerSage Weil <sage@newdream.net>
Mon, 15 Mar 2021 22:55:16 +0000 (18:55 -0400)
commit0e929d5c67e4d7f2f2b9629a8568af07fcf845ed
treeb67512e63eb623b7458394eca8741bff73b5b31d
parentb13d1426ffa0a03ffcef3bdfe4c9f9d5fb80974f
mgr/cephadm/schedule: return DaemonPlacement instead of HostPlacementSpec

Create a new type for the result of scheduling/place().  Include new fields
like ip:port.  Introduce a matches_daemon() to see whether an existing
daemon matches a scheduling slot.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/schedule.py
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/services/ha_rgw.py
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/orchestrator/_interface.py
src/python-common/ceph/deployment/service_spec.py