]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: add ctdb port to smb service spec 61863/head
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 19 Feb 2025 16:29:27 +0000 (16:29 +0000)
committerSachin Prabhu <sprabhu@redhat.com>
Mon, 24 Feb 2025 16:28:09 +0000 (16:28 +0000)
Signed-off-by: Sachin Prabhu <sp@spui.uk>
src/python-common/ceph/deployment/service_spec.py

index d0f7e0434a84391e79d69c56ef4968c412b7cfbd..f19280c21f57b972a1a261875ba7f6c5dacecfba 100644 (file)
@@ -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 [])]