[Bugs] [Bug 1540249] Gluster is trying to use a port outside documentation and firewalld' s glusterfs.xml

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 8 13:51:53 UTC 2018


--- Comment #13 from Atin Mukherjee <amukherj at redhat.com> ---
(In reply to Kaleb KEITHLEY from comment #12)
> In my case it's that SELinux appears to be blocking the bind() on 49151. I
> can start the volume if I disable SELinux. (I only tested on a single brick
> volume on the localhost so I would not be affected by the firewalld.)

You mean 49151 was allocated to a brick port? That can never happen! As in
glusterd's pmap the base port is set to 49152 and that from where the brick
port allocation starts. As per my analysis at comment 8 it was the outband port
which glusterd uses to send requests to other glusterd instances which was

I couldn't reproduce this problem on my fedora27 system with selinux mode

[root at atinmu glusterfs]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      31
[root at atinmu glusterfs]# 
[root at atinmu glusterfs]# 
[root at atinmu glusterfs]# 
[root at atinmu glusterfs]# 
[root at atinmu glusterfs]# glusterd
[root at atinmu glusterfs]# cat /etc/fedora-release
Fedora release 27 (Twenty Seven)

[root at atinmu glusterfs]# gluster v create test-vol x.x.x.x:/tmp/b{1..4} force
volume create: test-vol: success: please start the volume to access data
[root at atinmu glusterfs]# gluster v start test-vol
volume start: test-vol: success
[root at atinmu glusterfs]# gluster v status
Status of volume: test-vol
Gluster process                             TCP Port  RDMA Port  Online  Pid
Brick                 49152     0          Y       22410
Brick                 49153     0          Y       22431
Brick                 49154     0          Y       22452
Brick                 49155     0          Y       22473

Task Status of Volume test-vol
There are no active volume tasks

[root at atinmu glusterfs]# netstat -nap | grep 49151
tcp        0      0 x.x.x.x:24007     x.x.x.x:49151     ESTABLISHED
tcp        0      0 x.x.x.x:49151     x.x.x.x:24007     ESTABLISHED

x.x.x.x - same IP only

You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

More information about the Bugs mailing list