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
Fix bug in Member Exists Join for Kubeadm etcd join #97372
Conversation
In kubeadm etcd join there is a a bug that exists where, if a peer already exists in etcd, it attempts to mitigate by continuing and generating the etcd manifest file. However, this existing "member name" may actually be unset, causing subsequent etcd consistency checks to fail. This change checks if the member name is empty - if it is, it sets the member name to the node name, and resumes.
Welcome @ihgann! |
Hi @ihgann. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
cc @neolit123, please review when you get a chance! |
/cc @neolit123 |
/ok-to-test |
/test pull-kubernetes-bazel-test |
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.
@ihgann
the change seems good to me.
/triage accepted
/priority important-soon
as @pacoxu noted, in the PR description instead of NONE under "User facing..." add something like the following:
this will allow backporting the change to 1.18+ (1.17 is no longer released). |
actually 1.17 was still released but today was it's last version: |
@pacoxu @neolit123 I've added the release note. |
@ihgann
if you want to backport this change please use the cherry pick process documented here: note that we can only target release-1.18 as the minimum, and if you want this change in 1.17 you'd have to carry the patch locally in your setup. |
@neolit123 Fixed. Locally I will cherry-pick for our 1.17 branches. |
thanks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ihgann, neolit123 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
In kubeadm etcd join there is a a bug that exists where,
if a peer already exists in etcd, it attempts to mitigate
by continuing and generating the etcd manifest file. However,
this existing "member name" may actually be unset, causing
subsequent etcd consistency checks to fail.
This change checks if the member name is empty - if it is,
it sets the member name to the node name, and resumes.
Which issue(s) this PR fixes:
No issue filed (found internally). However, a summary of the issue is as such:
When running
kubeadm join phase control-plane-join etcd ...
, on a potentially very slow machine, the original join would time out, and a subsequent attempt might occur. In this subsequent attempt, the resultingetcd
manifest file may have an erroneous setup where the node name is missing in the--initial-cluster
field;Notice the second entry (after the first
,
), which specifies=https://10.192.175.85:2380
.This change forces this node name to never be empty.
Special notes for your reviewer:
@neolit123 is aware of this issue.
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: