[release-4.16] OCPBUGS-77187: Fix conntrack reconciliation to use service port instead of endpoint port#2998
Conversation
…port When reconciling conntrack entries for endpoint changes, we need to use the service port (the externally exposed port) rather than the endpoint port (the target port on the pod). This ensures conntrack entries are properly flushed for the actual service port that clients connect to. Changes: - Add FindServicePortForEndpointSlicePort helper to map endpoint ports to service ports - Update reconcileConntrackUponEndpointSliceEvents to use service port for conntrack deletion - Handle service not found error explicitly (return early, service deletion is handled separately) This is a manual backport of commit 6e577b8 by removing UDN-related test code for ServiceFromEndpointSlice that doesn't apply to release-4.16. Conflict resolution: - pkg/util/util.go: dropped IsMirrorEndpointSlice, IsDefaultEndpointSlice, and GetDefaultEndpointSlicesEventHandler (UDN features not present in release-4.16); kept only FindServicePortForEndpointSlicePort - pkg/util/util_unit_test.go: dropped TestGetNetworkScopedK8sMgmtHostIntfName (references function not in this branch) and unused imports (types, labels, sets) Signed-off-by: Peng Liu <pliu@redhat.com>
|
@pliurh: This pull request references Jira Issue OCPBUGS-77187, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@pliurh: This pull request references Jira Issue OCPBUGS-77187, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
pre-merge verified this PR on 4.16 /verified by QE |
|
@zhaozhanqi: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/retest-required |
1 similar comment
|
/retest-required |
|
@jluhrsen are you aware of any problems in the gofmt, lint and unit test jobs? They've started to fail with: |
|
/retest-required |
|
@ricky-rav ci/prow/e2e-aws-ovn-serial is perm-failing. Can we override it? |
|
/override ci/prow/e2e-aws-ovn-serial |
|
/label backport-risk-assessed |
|
@ricky-rav: Overrode contexts on behalf of ricky-rav: ci/prow/e2e-aws-ovn-serial DetailsIn response to this:
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. |
|
@pliurh: The following tests failed, say
Full PR test history. Your PR dashboard. 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pliurh, ricky-rav 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 |
6c926c1
into
openshift:release-4.16
|
@pliurh: Jira Issue Verification Checks: Jira Issue OCPBUGS-77187 Jira Issue OCPBUGS-77187 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Fix included in accepted release 4.16.0-0.nightly-2026-02-28-022130 |
When reconciling conntrack entries for endpoint changes, we need to use the service port (the externally exposed port) rather than the endpoint port (the target port on the pod). This ensures conntrack entries are properly flushed for the actual service port that clients connect to.
Changes:
This is a manual backport of commit 6e577b8 by removing UDN-related test code for ServiceFromEndpointSlice that doesn't apply to release-4.16.
Conflict resolution: