-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Default recipe starts consul with server: true
#423
Comments
Hi, @vsudilov. Yes, as I can see, we have a default value for FYI: It's not related to the Consul version, it is always
I think, we should fix that by removing the default value on this option from the resource definition. |
Please consider backporting this fix to the 2.x release set. I'm glad this change made it into the repo, but I managed to get bitten by this anyways. I was upgrading from consul==1.5.0 and I thought "better to do one major version at a time" so I ended up going with 2.3.0. This particular doozy of an issue (defaults to server=true in 2.3.0) was mentioned in the changelog... but only for 3.0.0 which I didn't read, because I wasn't upgrading to that version. Now I'm left with a few dozen nodes in a few datacenters that all think they are consul servers. I guess I'll have to demote them all carefully. |
Hi @yardinicwaller
Nodes converged with this attribute will start in a "client" mode. |
Yes, thank you @legal90, that's exactly what I did. However, that doesn't address my concern. The point is that this version 2.x of this cookbook has a radically different default behaviour than the 1.x version of the cookbook, and this change in behaviour is not documented as a breaking change. This means that other people who are upgrading from 1.x to 2.x are likely to fall into the same trap that I did. Demoting consul servers is a tedious process, and potentially risky because if too many servers are demoted at once then there's a possibility of losing quorum and needing to re-bootstrap the cluster. I believe this cookbook should do at least one of these two things:
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
seemingly, the root cause is that consul version at least > 0.7.0 ships with
server: true
as a default inconsul.json
;this can be seen by changing
node['consul']['version'] = 0.7.0
in the latest cookbook version, and noticing noserver: true
line in said file as compared to the cookbook's default consul version.The docs are out of date WRT to this change in behaviour.
The text was updated successfully, but these errors were encountered: