]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
python-common/deployment: add bind_addrs and related type for smb
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 16 Jun 2025 20:04:35 +0000 (16:04 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 23 Jul 2025 20:25:32 +0000 (16:25 -0400)
commit6bbd55dda7a5d9db5b0860d4b33e95fe3fdd91b1
treebd8e376b619e2113c1abc5c009e3103fa53db483
parente43800e968ff7d7c7736cfdd2d9b56d05bc3b437
python-common/deployment: add bind_addrs and related type for smb

Add a `bind_addrs` field and `SMBClusterBindIPSpec` to the smb service
spec. If specified the `bind_addrs` field can contain one or more
SMBClusterBindIPSpec value. In JSON these values can contain either an
address `{"address": "192.168.76.10"}` or network `{"network":
"192.168.76.0/24"}`.

These specs will be used by cephadm to place the smb service only on
hosts that have IPs matching the supplied IP Address/Network values. It
will also instruct the smb services to only bind to these addresses.

A suggested future enhancement may be include an IP address range
representation for the SMBClusterBindIPSpec.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/deployment/service_spec.py