You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In this issue, I thought I had uncovered a bug in inter-node TLS and peer discovery, when in fact I had a simple configuration error in my environment:
Note that there is a duplicated node, and that node rmq0.local is not in that list. This error was only discovered after @dumbbell carefully looked at debug logs.
Describe the solution you'd like
RabbitMQ should log warnings, or perhaps, even fail to start when an invalid list of nodes is returned by a peer discovery backend:
Right, but, as I saw in #11534, if the list of nodes returned from a backend does not include the current node, it causes issues. Likewise, a list that contains duplicates is suspect as well.
#11898 adds some log warnings for classic config. It warns if the local node is missing and if there are duplicates in the list. We force the inclusion of the local node, so failing to start seems like a breaking change to me. This just makes easier to discover any issue just by inspecting the logs
Is your feature request related to a problem? Please describe.
In this issue, I thought I had uncovered a bug in inter-node TLS and peer discovery, when in fact I had a simple configuration error in my environment:
https://github.com/lukebakken/docker-rabbitmq-cluster/blob/69791a36b664ed448b970ca0f2ead1742e4822b4/rmq1/rabbitmq.conf#L12-L14
Note that there is a duplicated node, and that node
rmq0.local
is not in that list. This error was only discovered after @dumbbell carefully looked at debug logs.Describe the solution you'd like
RabbitMQ should log warnings, or perhaps, even fail to start when an invalid list of nodes is returned by a peer discovery backend:
rabbitmq-server/deps/rabbit/src/rabbit_peer_discovery.erl
Line 293 in 447fac9
In the case of the classic peer discovery backend, @dumbbell suggested that the following are invalid:
@michaelklishin should be able to verify if the above should apply to all backends (k8s, consul, AWS, etc).
The text was updated successfully, but these errors were encountered: