]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add filter_host_candidates method to smb service class
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 16 Jun 2025 20:05:22 +0000 (16:05 -0400)
committerAdam King <adking@redhat.com>
Fri, 25 Jul 2025 17:55:28 +0000 (13:55 -0400)
commit1660aca7d9ba16b46dc44b299480e71af43cb16f
tree68469ccb8ee8e3c53808ed218b902205199e62d8
parent639bb092de03b7b5afabfcc20e4e49ec20a6d79a
mgr/cephadm: add filter_host_candidates method to smb service class

Add a filter_host_candidates method to the smb service class allowing
that class to act as a HostSelector. The HostSelector was added in an
earlier commit to allow classes like this one to make specific host
selections based on unique to that class (or it's spec) criteria.

This method uses the newly added `bind_addrs` field of the smb service
spec to ensure only hosts that meet the desired set of
networks/addresses get used in placement.

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