Bug 1462098

Summary: [Ganesha+Gdeploy] Open up 2049 UDP port as pre-requisite to cluster setup
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Soumya Koduri <skoduri>
Component: gdeployAssignee: Sachidananda Urs <surs>
Status: CLOSED NOTABUG QA Contact: Manisha Saini <msaini>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: rhs-bugs, smohan, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-16 09:08:29 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:
Embargoed:

Description Soumya Koduri 2017-06-16 07:43:03 UTC
Description of problem:

As mentioned in the bug1459909, nfs udp mount fails as the respective port (2049-UDP) is blocked by firewalld on the server machine. Till that bug gets addressed, we need to manually open it and hence should be automated via gdeploy too. 

The extra command shall be documented as part of bug1462095 -
# firewall-cmd --zone=zone_name --add-port=2049/udp

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Sachidananda Urs 2017-06-16 08:17:49 UTC
There is a mechanism to do this, no code change needed for this.
We just have to add a line in the config file. For example:

[firewalld]
action=add
ports=111/tcp,2049/tcp,54321/tcp,5900/tcp,5900-6923/tcp,5666/tcp,16514/tcp
services=glusterfs,nlm,nfs,rpc-bind,high-availability,mountd,rquota

^^^^^
Above is the existing example. We have to add an entry to the ports like:


[firewalld]
action=add
ports=111/tcp,2049/tcp,54321/tcp,5900/tcp,5900-6923/tcp,5666/tcp,16514/tcp,2049/udp
services=glusterfs,nlm,nfs,rpc-bind,high-availability,mountd,rquota,zonename

Comment 3 Soumya Koduri 2017-06-16 09:08:29 UTC
Thanks Sac. So we can document the same in the below section -
5.1.8. Deploying NFS Ganesha using gdeploy
Enabling Firewall Ports

This can be taken care of as part of bug1462095. Closing this BZ.