Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1360165 - Add a rule to allow a non-ephemeral cluster port for rabbitmq
Summary: Add a rule to allow a non-ephemeral cluster port for rabbitmq
Alias: None
Product: RDO
Classification: Community
Component: openstack-selinux
Version: trunk
Hardware: All
OS: Linux
Target Milestone: ---
: trunk
Assignee: Lon Hohberger
QA Contact: Ofer Blaut
Depends On:
Blocks: 1357522
TreeView+ depends on / blocked
Reported: 2016-07-26 06:59 UTC by Michele Baldessari
Modified: 2017-02-17 15:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-02-17 15:39:35 UTC

Attachments (Terms of Use)

Description Michele Baldessari 2016-07-26 06:59:39 UTC
Description of problem:
Currently rabbitmq uses port 35672 for cluster communications which is in the 
ephemeral range.

Ephemeral ports are the ports kernel assigns to application if it doesn't specify which port to open. So there is a small chance that this application being started before RabbitMQ itself could grab this port. Unfortunately we've just seen this in the wild.

Via BZ we would like
to move rabbit's cluster port outside of this range, to 25672.

This is all ready in, but I'd like to make
sure that we explicitely allow this port in the selinux policy.

Could we add this port to the allowed ports to bind and connect to?

Comment 1 Michele Baldessari 2016-09-15 07:58:05 UTC
I think we are actually already good to go:
rabbitmq_port_t tcp 25672

Comment 2 Lon Hohberger 2017-02-17 15:39:35 UTC
[root@localhost ~]# semanage port -l | grep rabbit
rabbitmq_port_t                tcp      25672

0.7.13 has this

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