-
-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove invalid cluster_node_type 'disk' #859
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, @danoe!
This seems sensible to me, and thanks for including all the research / details. I agree with your interpretation.
I want to doublecheck with @bastelfreak / @alexjfisher whether we need to flag this as backwards-incompatible (I'd argue maybe not, since this was always broken, and probably generates an invalid config).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @danoe for the excellent PR. This should be an example because it makes the life of a reviewer very easy.
@wyardley I think this does technically qualifies as a bugfix since it was never valid. While it's an API change, I get the impression that a server would never start up with a value disk
so this just prevents misconfigurations. That's why I'd be fine with including it in a .z
.
This piece of code, when is_list(Nodes) andalso (Type == disc orelse Type == disk orelse Type == ram) -> is the only reference to |
I'm also not sure that rabbitmq/rabbitmq-server@23d8485 ever worked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy that this probably never worked, so doesn't need to be marked as backwards incompatible.
Thanks guys, appreciate the feedback and quick merge. 👍 |
Pull Request (PR) description
Hi,
I would like to propose this little change, as to what I was able to find out is not a valid option, and i'm not sure if it ever was.
The
disk
option was added in module version5.0.0 (2014-12-22)
See commit: 6c67f33
and Puppetlabs ticket: https://tickets.puppetlabs.com/browse/MODULES-1186
The part on the clustering page referenced there is probably this:
https://www.rabbitmq.com/clustering.html#cluster-node-types
Though it doesn't mention that the parameters can be used interchangeably. And from what i've seen in the rest of the rabbitmq documentation and source code, i don't think this was ever a valid option.
Results of my research
disc
andram
disc
andram
Reason I found this out was that i just spent 2 days debugging why the cluster wouldn't form until i realized that i had set the cluster_node_type to
disk
. Though the first node starts correctly, probably because the node type is ignored as in any cluster must exist at least onedisc
node. So the first node was running fine, but none of the other nodes were able to join.This Pull Request (PR) fixes the following issues
cluster_node_type 'disk' is not a valid option.