rabbitmq: Open ports 25673-25683 for CLI tools
Since RabbitMQ 3.7.4, the CLI tools (rabbitmqctl and friends) parallelize the querying of information from cluster members. In order to receive stream data back, the cli instance binds and registers itself on an available port (default between 35672 and 35682, inclusive). If these ports are firewalled off, then rabbitmqctl commands such as list_queues will hang waiting for data from remote cluster members. This patch does two things: 1) Reconfigures rabbitmqctl to bind to 25673-25683 instead of the default range of 35672-35682. This ensures the ports are not in the ephemeral port range and avoids unintended collisions. 2) Opens the firewall on 25673-25683 to enable communication. Resolves: rhbz#1811680 Closes-Bug: #1866958 Change-Id: If5caa51cd9a3aef97d06d491dde1d5129cc1a569
This commit is contained in:
parent
a15001a6de
commit
a2bc2e10b0
|
@ -119,6 +119,7 @@ outputs:
|
|||
- 4369
|
||||
- 5672
|
||||
- 25672
|
||||
- 25673-25683
|
||||
monitoring_subscription: {get_param: MonitoringSubscriptionRabbitmq}
|
||||
# RabbitMQ plugins initialization occurs on every node
|
||||
config_settings:
|
||||
|
@ -146,6 +147,8 @@ outputs:
|
|||
RABBITMQ_NODENAME: "rabbit@%{::hostname}"
|
||||
RABBITMQ_SERVER_ERL_ARGS: '"+K true +P 1048576 -kernel inet_default_connect_options [{nodelay,true}]"'
|
||||
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: {get_param: RabbitAdditionalErlArgs}
|
||||
RABBITMQ_CTL_DIST_PORT_MIN: '25673'
|
||||
RABBITMQ_CTL_DIST_PORT_MAX: '25683'
|
||||
'export ERL_EPMD_ADDRESS': "%{hiera('rabbitmq::interface')}"
|
||||
rabbitmq_kernel_variables:
|
||||
inet_dist_listen_min: '25672'
|
||||
|
|
|
@ -101,6 +101,7 @@ outputs:
|
|||
- 4369
|
||||
- {get_param: NotifyPort}
|
||||
- 25672
|
||||
- 25673-25683
|
||||
monitoring_subscription: {get_attr: [RabbitMQServiceBase, role_data, monitoring_subscription]}
|
||||
# RabbitMQ plugins initialization occurs on every node
|
||||
global_config_settings:
|
||||
|
|
|
@ -97,6 +97,7 @@ outputs:
|
|||
- 4369
|
||||
- 5672
|
||||
- 25672
|
||||
- 25673-25683
|
||||
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
||||
config_settings:
|
||||
map_merge:
|
||||
|
|
|
@ -97,6 +97,7 @@ outputs:
|
|||
- 4369
|
||||
- 5672
|
||||
- 25672
|
||||
- 25673-25683
|
||||
monitoring_subscription: {get_attr: [RabbitMQServiceBase, role_data, monitoring_subscription]}
|
||||
config_settings:
|
||||
map_merge:
|
||||
|
|
|
@ -102,6 +102,7 @@ outputs:
|
|||
- 4369
|
||||
- {get_param: RpcPort}
|
||||
- 25672
|
||||
- 25673-25683
|
||||
monitoring_subscription: {get_attr: [RabbitMQServiceBase, role_data, monitoring_subscription]}
|
||||
global_config_settings:
|
||||
map_merge:
|
||||
|
|
|
@ -97,6 +97,7 @@ outputs:
|
|||
- 4369
|
||||
- 5672
|
||||
- 25672
|
||||
- 25673-25683
|
||||
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
||||
config_settings:
|
||||
map_merge:
|
||||
|
|
Loading…
Reference in New Issue