]> git.apps.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)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 23 Jul 2025 20:25:31 +0000 (16:25 -0400)
commite43800e968ff7d7c7736cfdd2d9b56d05bc3b437
treed0d9ba68243f7075ed4fb6de1b9f6d00ff0bb604
parente3a3334f2ccf46c436ee61db14378629b1e72df8
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>
src/pybind/mgr/cephadm/serve.py