Bug 1474745 - [RFE] Reserved port range for Gluster
[RFE] Reserved port range for Gluster
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd (Show other bugs)
Unspecified Unspecified
low Severity high
: ---
: RHGS 3.4.0
Assigned To: Atin Mukherjee
Bala Konda Reddy M
: FutureFeature
Depends On:
Blocks: 1458646 1503132 1503135 1531937 RHGS-3.4-GSS-proposed-tracker
  Show dependency treegraph
Reported: 2017-07-25 06:22 EDT by Raghavendra Talur
Modified: 2018-05-25 17:31 EDT (History)
11 users (show)

See Also:
Fixed In Version: glusterfs-3.12.2-1
Doc Type: Enhancement
Doc Text:
This enhancement brings in a capability to allow an user to define the max port value in glusterd.vol to control the range of port what glusterd bricks will be allowed to consume.
Story Points: ---
Clone Of: 1458646
: 1531937 (view as bug list)
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Comment 4 Atin Mukherjee 2017-08-10 09:20:17 EDT
upstream patch : https://review.gluster.org/#/c/18016
Comment 9 Bala Konda Reddy M 2018-03-13 05:57:55 EDT
Build: 3.12.2-5

Set the max port number as 49200 in the /etc/glusterfs/glusterd.vol, restarted glusterd to get the changes reflected from the glusterd.vol file.

glusterd should not be able to allocate the port beyond the max port range

when the port number exceeds the limit set in the vol file, the volume start will fail as below

[root@dhcp37-54 ~]# gluster vol start testvol_z
volume start: testvol_z: failed: Commit failed on localhost. Please check log file for details 

Glusterd log saying all the ports are exhausted
[2018-03-13 09:07:42.855879] E [MSGID: 106612] [glusterd-utils.c:2016:glusterd_volume_start_glusterfs] 0-management: All the ports in the range are exhausted, can't start brick /bricks/brick0/testvol_100z for volume testvol_z

comment out the max-port in glusterd.vol file and restart glusterd. Now the default max port is set to 65535. Now volume start succeeds

[root@dhcp37-54 ~]# gluster vol start testvol_z
volume start: testvol_z: success

Hence marking it as verified

Note You need to log in before you can comment on or make changes to this bug.