Deregister elb targets before registering targets#1328
Conversation
|
This issue is currently awaiting triage. If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the The DetailsInstructions 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-sigs/prow repository. |
|
Hi @DanielCKennedy. 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. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
|
/lgtm |
yue9944882
left a comment
There was a problem hiding this comment.
can we add a unit test that simulates the quota pressue issue and asserts that deregistration happens first? meanwhile it will be great to have some code comments clarifying the reason why we have this ordering..
4c7522b to
06f20a0
Compare
|
@DanielCKennedy: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yue9944882 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…-#1328-upstream-release-1.35 Automated cherry pick of #1328: Deregister elb targets before registering targets
…28-upstream-release-1.34 Automated cherry pick of #1328 upstream release 1.34
…28-upstream-release-1.32 Automated cherry pick of #1328 upstream release 1.32
…28-upstream-release-1.33 Automated cherry pick of #1328 upstream release 1.33
What type of PR is this?
/kind bug
What this PR does / why we need it:
NLB's with the the max number of targets in a target group are unable to perform node replacements due to "TooManyTargets" errors short-circuiting the
ensureTargetGroupTargets()function during registration, preventing the deregister action from happening.This change will perform the deregister operation before the register operation to prevent deadlock on NLB's with quota pressure.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: