]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 23 Jul 2025 20:25:32 +0000 (16:25 -0400)
commit1afb07b0c391a0c1162f6f742ae7814a5be1789e
treeaddd939044331b19e1fd196683959dfef25e26e7
parent6bbd55dda7a5d9db5b0860d4b33e95fe3fdd91b1
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>
src/pybind/mgr/cephadm/services/smb.py