Skip to content

Commit

Permalink
Update HA related ports (bsc#1219773)
Browse files Browse the repository at this point in the history
- Add 21064/sctp for dlm
- Add comment for each port to explain which service it is for
- Remove 2224, which was for pcsd, RHEL CLI
- Remove 5560, which was for mgmtd, already deprecated
  • Loading branch information
liangxin1300 committed Jan 17, 2025
1 parent 09b2309 commit a8bf24f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
21 changes: 10 additions & 11 deletions package/cluster.firewalld.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>SUSE YaST Cluster</short>
<description>This allows you to open various ports related to SUSE YaST Cluster module. Ports are opened for pacemaker-remote, booth, mgmtd, hawk, dlm, csync2 and corosync-qnetd.</description>
<port protocol="tcp" port="2224"/>
<port protocol="tcp" port="3121"/>
<port protocol="tcp" port="5403"/>
<port protocol="udp" port="5404"/>
<port protocol="udp" port="5405"/>
<port protocol="tcp" port="5560"/>
<port protocol="tcp" port="7630"/>
<port protocol="tcp" port="9929"/>
<description>This allows you to open various ports related to SUSE YaST Cluster module. Ports are opened for pacemaker-remote, booth, hawk, dlm, csync2 and corosync-qnetd.</description>
<port protocol="tcp" port="3121"/> <!-- pacemaker-remote -->
<port protocol="tcp" port="5403"/> <!-- corosync-qnetd -->
<port protocol="udp" port="5404"/> <!-- corosync -->
<port protocol="udp" port="5405"/> <!-- corosync -->
<port protocol="tcp" port="7630"/> <!-- hawk -->
<port protocol="tcp" port="9929"/> <!-- booth -->
<port protocol="udp" port="9929"/>
<port protocol="tcp" port="21064"/>
<port protocol="tcp" port="30865"/>
<port protocol="tcp" port="21064"/> <!-- dlm -->
<port protocol="stcp" port="21064"/>
<port protocol="tcp" port="30865"/> <!-- csync2 -->
</service>

3 changes: 1 addition & 2 deletions src/modules/Cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -694,11 +694,10 @@ def Write
udp_ports << @mcastport2 if @enable2 && @mcastport2 != ""

# 30865 for csync2
# 5560 for mgmtd
# 7630 for hawk or hawk2
# 21064 for dlm
# 5403 for corosync qdevice(default)
tcp_ports = ["30865", "5560", "21064", "7630"]
tcp_ports = ["30865", "21064", "7630"]
tcp_ports << @qdevice_port if @corosync_qdevice

begin
Expand Down

0 comments on commit a8bf24f

Please sign in to comment.