Bug 1039657

Summary: iptable entries for rhs nodes do not contain udp:123, tcp: 6010, 6011, 6012, 443
Product: Red Hat Gluster Storage Reporter: Dustin Tsang <dtsang>
Component: rhscAssignee: Dusmant <dpati>
Status: CLOSED NOTABUG QA Contact: Dustin Tsang <dtsang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: knarra, mmahoney, mmccune, pprakash, rhs-bugs, sankarshan, ssampat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-10 16:48:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dustin Tsang 2013-12-09 17:18:23 UTC
Description of problem:

iptable entries added to gluster hosts when added to a rhsc cluster do not contain: 
udp 123 
tcp 6010
tcp 6011
tcp 6012
tcp 443

reference https://access.redhat.com/site/documentation/en-US/Red_Hat_Storage/2.1/html-single/Installation_Guide/index.html#chap-Installation_Guide-Planning-Port

Version-Release number of selected component (if applicable):
rhsc-cb10

How reproducible:
100%

Steps to Reproduce:
1. create a cluster in rhsc
2. add a rhs host to the cluster
3. once host is up, ssh into the rhs host and run `service iptables status`

Actual results:
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:54321 
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22 
5    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:161 
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:24007 
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8080 
8    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:111 
9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:38465 
10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:38466 
11   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:111 
12   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:38467 
13   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:2049 
14   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:38469 
15   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:39543 
16   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:55863 
17   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:38468 
18   ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:963 
19   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:965 
20   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:4379 
21   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:139 
22   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:445 
23   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:24009:24108 
24   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:49152:49251 
25   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 


Expected results:

rules should also include entries for 
udp 123 
tcp 6010
tcp 6011
tcp 6012
tcp 443

Additional info:

Comment 2 Dusmant 2013-12-10 16:48:26 UTC
All the above ports are required for SWIFT configuration and currently RHSC does not support SWIFT and hence it's not required to have them in the iptable rules. Hence moving this bug to CLOSED state as NOTABUG