]> git-server-git.apps.pok.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)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 23 Jul 2025 20:25:31 +0000 (16:25 -0400)
commite3a3334f2ccf46c436ee61db14378629b1e72df8
treea27eecf38bc43b364523ff02909c993434e8f6e2
parent707f1e295297c2efab53ecfef7be12aa786f92c6
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>
src/pybind/mgr/cephadm/schedule.py