Skip to content
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 #6531: Fix NodePortLocal rules being deleted incorrectly due to #6534

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Jul 18, 2024

Cherry pick of #6531 on release-1.15.

#6531: Fix NodePortLocal rules being deleted incorrectly due to

For details on the cherry pick process, see the cherry pick requests page.

antrea-io#6531)

The NodePortLocal cache bound a Pod's NodePortLocal rules to its Pod IP.
However, a Pod IP can be recycled and allocated to another Pod when it
runs into succeeded or failed stage, which causes more than one Pod to
share a Pod IP. When the terminated Pod was deleted, NodePortLocal
controller incorrectly deleted the rules that belong to another Pod
because they have the same IP.

The patch fixes it by binding the NodePortLocal rules to its Pod key
(namespace + name). The podToIP cache is no longer needed as we can
clean up rules by Pod key.

Signed-off-by: Quan Tian <quan.tian@broadcom.com>
@tnqn tnqn added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Jul 18, 2024
@XinShuYang
Copy link
Contributor

/test-e2e

@tnqn
Copy link
Member Author

tnqn commented Jul 22, 2024

/skip-conformance
/skip-networkpolicy

@tnqn
Copy link
Member Author

tnqn commented Jul 22, 2024

/test-windows-e2e

@tnqn tnqn merged commit 89bb9ae into antrea-io:release-1.15 Jul 22, 2024
46 of 51 checks passed
@tnqn tnqn deleted the automated-cherry-pick-of-#6531-upstream-release-1.15 branch July 22, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants