-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
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:
| Ret = Backend:list_nodes(), |
In the case of the classic peer discovery backend, @dumbbell suggested that the following are invalid:
- A list that does not contain the current node.
- A list with duplicates
@michaelklishin should be able to verify if the above should apply to all backends (k8s, consul, AWS, etc).