-
Notifications
You must be signed in to change notification settings - Fork 45
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
salt: fix unsafe approach for etcd `initial-cluster-state #2198
salt: fix unsafe approach for etcd `initial-cluster-state #2198
Conversation
Hello ebaneck,My role is to assist you with the merge of this Status report is not available. |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
|
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
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.
Logic in etcd.installed
is good, but I'm not sure about this pillar value... WDYT @TeddyAndrieux @NicolasT ?
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
The following reviewers are expecting changes from the author, or must review again: |
90c55ff
to
ef8d1a1
Compare
History mismatchMerge commit #90c55ff8583592d1187dd0c7359113122d7cb7bf on the integration branch It is likely due to a rebase of the branch Please use the |
03d024a
to
bdbb742
Compare
bdbb742
to
9e0eb56
Compare
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.
LGTM
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.
All good!
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.
Build fail
Initially, we set etcd cluster state to new when the member list from the pillars is empty. This approach is not optimal since if for what ever reason we are not able to retrieve the list. Now, we raise an error when setting the cluster state to `existing` if we are unable to obtain a list of members. Also, we only set to `new` state only during a bootstrap.
9e0eb56
to
ac5a990
Compare
/approve |
History mismatchMerge commit #90c55ff8583592d1187dd0c7359113122d7cb7bf on the integration branch It is likely due to a rebase of the branch Please use the The following options are set: approve |
/reset |
Reset completeI have successfully deleted this pull request's integration branches. The following options are set: approve |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
The following options are set: approve |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
The following reviewers are expecting changes from the author, or must review again: The following options are set: approve |
Build failedThe build for commit did not succeed in branch w/2.5/bugfix/2102-fix-unsafe-approach-for-etcd-initial-cluster-state. The following options are set: approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue None. Goodbye ebaneck. |
Component:
'salt', 'bootstrap'
Context:
See #2102
Summary:
This PR ensures that we set the etcd initial cluster state to
existing
by default and then override this value only during a Bootstrap orchestration.We also ensure to raise an error when the etcd member list is empty because If all nodes are unavailable we should never set the cluster state to
new
Acceptance criteria:
Etcd deployment should be resilient.
Closes: #2102