]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: teach serve.py about host selector support
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 16 Jun 2025 20:05:14 +0000 (16:05 -0400)
committerAdam King <adking@redhat.com>
Fri, 25 Jul 2025 17:55:28 +0000 (13:55 -0400)
commitcf451d307662ed55583408dfe578f4e309ca3044
tree157030385d5799d8899944842c86113e345bc51f
parentac608899777c143ab7366dcb235e7bd5109180c6
mgr/cephadm: teach serve.py about host selector support

A previous commit added a HostSelector protocol type to the schedule
code. This change makes it so the function calling upon the
HostAssignment class detects if a CephService provides a
filter_host_candidates method - meaning the service class can act as a
HostSelector. If the class can be a HostSelector pass it to the
HostAssignment so that the custom selection operation can be run.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit e43800e968ff7d7c7736cfdd2d9b56d05bc3b437)
src/pybind/mgr/cephadm/serve.py