From a741f61b0020752042705116f6d4e4c3588ea55e Mon Sep 17 00:00:00 2001 From: Sachin Prabhu Date: Wed, 19 Feb 2025 16:29:27 +0000 Subject: [PATCH] python-common: add ctdb port to smb service spec Signed-off-by: Sachin Prabhu --- src/python-common/ceph/deployment/service_spec.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index d0f7e0434a843..f19280c21f57b 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -3180,7 +3180,11 @@ class SMBSpec(ServiceSpec): return uri def get_port_start(self) -> List[int]: - return [445, 9922] # SMB service runs on port 445, and smbmetrics uses 9922 + ports = [445, 9922] # SMB service runs on port 445 and smbmetrics uses 9922 + if 'clustered' in self.features: + # ctdb uses port 4379 + ports.append(4379) + return ports def strict_cluster_ip_specs(self) -> List[Dict[str, Any]]: return [s.to_strict() for s in (self.cluster_public_addrs or [])] -- 2.39.5