From 054b5508ed2c947b48adcefe6059980ba52fc7a9 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 17 Jun 2025 15:09:07 -0400 Subject: [PATCH] mgr/cephadm: pass bind_networks with other smb config blobs Tell the cephadm binary deploying an smb service about the networks this smb service will be binding to. Signed-off-by: John Mulligan (cherry picked from commit 414300201aa726e9ce88c7219ddb4dfd0daf8f62) --- src/pybind/mgr/cephadm/services/smb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/cephadm/services/smb.py b/src/pybind/mgr/cephadm/services/smb.py index edb499038911a..e8d0388b10a38 100644 --- a/src/pybind/mgr/cephadm/services/smb.py +++ b/src/pybind/mgr/cephadm/services/smb.py @@ -157,6 +157,8 @@ class SMBService(CephService): '', force_ceph_image=True ) config_blobs['service_ports'] = smb_spec.service_ports() + if smb_spec.bind_addrs: + config_blobs['bind_networks'] = smb_spec.bind_networks() logger.debug('smb generate_config: %r', config_blobs) self._configure_cluster_meta(smb_spec, daemon_spec) -- 2.39.5