How can I configure stream replication connections to use IPv6 in an IPv6-only environment? #15005
-
Describe the bugI'm deploying kolla-ansible 2025.2 openstack in ipv6 only lab. I don't have a lot of experience with rabbitmq but I see a lot of refused connection between nodes: If I understand this correctly, replication cannot take place since rabbitmq opens ipv4 ports on hosts without any ipv4 addresses. Listening ipv4 sockets are not reachable over ipv6. Aside from that, rabbitmq cluster looks ok, nodes online are detected Config files: rabbitmq-env.conf erl_inetrc I've read rabbitmq networking guide and it's ipv6 section. If I understood it correctly this config should be enough to get rabbitmq to working over ipv6. I've also tried to get enviroment variables configured at the container lever instead of rabbitmq-env.conf files but there was no difference. I would appreciate any feedback on this issue. Reproduction steps
Expected behaviorRabbitmq shouldn't bind to ipv4 while operating in ipv6 mode. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Example errors of rabbitmq failing to create inter-node connections For some reason it tries to connect to remote nodes on ipv4 localhost |
Beta Was this translation helpful? Give feedback.
-
|
@adippl IPv6 support for stream replication connections was introduced 9 months ago in rabbitmq/osiris#177 and has first shipped in RabbitMQ I'd need to see if we expose it in [
{osiris, [
{replica_ip_address_family, inet6}
]}
]. |
Beta Was this translation helpful? Give feedback.
-
|
There is no |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the explanation. Replacing it with your example resolves the issue and allows rabbitmq to work correctly. I've modified original config to add osiris section and it also works: Is there documentation for this syntax outside of release notes? |
Beta Was this translation helpful? Give feedback.
-
|
#15011 exposes the above setting to Thank you for bringing this topic up, @adippl. |
Beta Was this translation helpful? Give feedback.
@adippl IPv6 support for stream replication connections was introduced 9 months ago in rabbitmq/osiris#177 and has first shipped in RabbitMQ
4.1.0.I'd need to see if we expose it in
rabbitmq.confbut even if we don't, the setting can be controlled withadvanced.config:[ {osiris, [ {replica_ip_address_family, inet6} ]} ].