Skip to content

Deregister elb targets before registering targets#1328

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
DanielCKennedy:quotapressure
Mar 13, 2026
Merged

Deregister elb targets before registering targets#1328
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
DanielCKennedy:quotapressure

Conversation

@DanielCKennedy
Copy link
Copy Markdown
Contributor

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.

error trying to register targets in target group: \"TooManyTargets: You cannot have more than 1000 targets per network load balancer with cross-zone load balancing enabled.

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?:

Fixed bug that prevented target deregistrations from occurring on Load Balancer target groups with quota pressure by processing deregistrations before registrations

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 12, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

This issue is currently awaiting triage.

If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Details

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot requested review from dims and kmala January 12, 2026 21:51
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 12, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 12, 2026
@kmala
Copy link
Copy Markdown
Member

kmala commented Jan 12, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 12, 2026
@kmala
Copy link
Copy Markdown
Member

kmala commented Feb 12, 2026

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 12, 2026
Copy link
Copy Markdown
Member

@yue9944882 yue9944882 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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..

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 13, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@DanielCKennedy: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cloud-provider-aws-e2e-kubetest2 06f20a0 link false /test pull-cloud-provider-aws-e2e-kubetest2
pull-cloud-provider-aws-e2e-kubetest2-quick 06f20a0 link false /test pull-cloud-provider-aws-e2e-kubetest2-quick

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.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@yue9944882
Copy link
Copy Markdown
Member

/lgtm
/approve
/retest

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 13, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 13, 2026
@k8s-ci-robot k8s-ci-robot merged commit 7c70475 into kubernetes:master Mar 13, 2026
9 of 11 checks passed
k8s-ci-robot added a commit that referenced this pull request Mar 21, 2026
…-#1328-upstream-release-1.35

Automated cherry pick of #1328: Deregister elb targets before registering targets
k8s-ci-robot added a commit that referenced this pull request Apr 28, 2026
…28-upstream-release-1.34

Automated cherry pick of #1328 upstream release 1.34
k8s-ci-robot added a commit that referenced this pull request Apr 29, 2026
…28-upstream-release-1.32

Automated cherry pick of #1328 upstream release 1.32
k8s-ci-robot added a commit that referenced this pull request Apr 29, 2026
…28-upstream-release-1.33

Automated cherry pick of #1328 upstream release 1.33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants