]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: prepare schedule.py for per-service-type host filtering
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 16 Jun 2025 20:05:01 +0000 (16:05 -0400)
committerAdam King <adking@redhat.com>
Fri, 25 Jul 2025 17:55:22 +0000 (13:55 -0400)
commitac608899777c143ab7366dcb235e7bd5109180c6
treec77347ce67428bf6286e69326b153337e24f0bf5
parent1c808ca6fba7e7415bf1150f2f6cbe45d1561472
mgr/cephadm: prepare schedule.py for per-service-type host filtering

Prepare schedule.py for per-service-type host filtering based on allowed
host addresses/networks. Add a new HostSelector protocol type to the
module defining what the filtering interface looks like.

This interface is intended allows CephService classes to "take over" the
network based filtering of nodes prior to placement and customize the
behavior of this step in cephamd's placement algorithm.

Note that the type must be passed in to the HostAssignment class as an
optional argument. If nothing is passed the class behaves as it did
before.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit e3a3334f2ccf46c436ee61db14378629b1e72df8)

Conflicts:
src/pybind/mgr/cephadm/schedule.py
src/pybind/mgr/cephadm/schedule.py