From: Sachin Prabhu Date: Wed, 19 Feb 2025 16:29:27 +0000 (+0000) Subject: python-common: add ctdb port to smb service spec X-Git-Tag: testing/wip-pdonnell-testing-20250227.172146-debug~5^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a741f61b0020752042705116f6d4e4c3588ea55e;p=ceph-ci.git python-common: add ctdb port to smb service spec Signed-off-by: Sachin Prabhu --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index d0f7e0434a8..f19280c21f5 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 [])]