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
Automated cherry pick of #118499: kube-proxy avoid race condition using LocalModeNodeCIDR #118515
Automated cherry pick of #118499: kube-proxy avoid race condition using LocalModeNodeCIDR #118515
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
fd51f5c
to
bf911d0
Compare
bf911d0
to
456f635
Compare
/assign @danwinship @thockin you don't realize how good was latest Dan refactor until you find out you can not add a simple unit test 🙃 |
/kind bug |
Since kube-proxy in LocalModeNodeCIDR needs to obtain the PodCIDR assigned to the node it watches for the Node object. However, kube-proxy startup process requires to have these watches in different places, that opens the possibility of having a race condition if the same node is recreated and a different PodCIDR is assigned. Initializing the second watch with the value obtained in the first one allows us to detect this situation. Change-Id: I6adeedb6914ad2afd3e0694dcab619c2a66135f8 Signed-off-by: Antonio Ojea <aojea@google.com>
456f635
to
b30e94b
Compare
Thanks! /lgtm |
LGTM label has been added. Git tree hash: e1d57212e36ff964fcbf6bafd457445cf9a4e7c4
|
/retest
It looks like a deadlock |
@kubernetes/release-managers |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, saschagrunert, thockin 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 |
…5-upstream-release-1.24 Automated cherry pick of #118515: kube-proxy avoid race condition using LocalModeNodeCIDR
…5-upstream-release-1.26 Automated cherry pick of #118515: kube-proxy avoid race condition using LocalModeNodeCIDR
…5-upstream-release-1.25 Automated cherry pick of #118515: kube-proxy avoid race condition using LocalModeNodeCIDR
Cherry pick of #118499 on release-1.27.
#118499: kube-proxy avoid race condition using LocalModeNodeCIDR
For details on the cherry pick process, see the cherry pick requests page.