Skip to content

Conversation

@cgoncalves
Copy link
Contributor

No description provided.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 14, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 14, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cgoncalves
Once this PR has been reviewed and has the lgtm label, please assign tssurya for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

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

@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 14, 2025
EgressIPs were incorrectly added to the br-ex network interface immediately
upon EgressIP CR creation, without checking for matching pods or using
longest prefix matching (LPM) for interface selection. This caused duplicate
IP assignments when the correct secondary host interface was later assigned.

Changes:
- Add pod existence validation before IP assignment in bridgeEIPAddrManager
- Implement longest prefix matching to determine correct network interface
- Add dynamic pod event handling to re-evaluate EgressIPs on pod lifecycle
- Extend retry framework to watch pod events for EgressIP reconciliation
- Add comprehensive unit tests covering edge cases and pod matching logic

The fix ensures EgressIPs are only assigned when:
1. Matching pods exist and are running
2. The target interface is determined via LPM algorithm
3. No duplicate IPs are assigned across multiple interfaces

Files modified:
- gateway_egressip.go: Core logic for pod checking and LPM interface selection
- gateway.go: Pod event handling and retry framework integration
- gateway_shared_intf.go: Bridge manager initialization with pod informers
- obj_retry_gateway.go: Pod resource handling in retry framework
- gateway_egressip_test.go: Comprehensive test coverage for new functionality

Fixes duplicate EgressIP assignment bug where IPs appeared on both br-ex
and the correct secondary interface simultaneously.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 14, 2025

@cgoncalves: 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
ci/prow/e2e-aws-ovn-serial 58e5fa3 link true /test e2e-aws-ovn-serial
ci/prow/4.18-upgrade-from-stable-4.17-e2e-aws-ovn-upgrade 58e5fa3 link true /test 4.18-upgrade-from-stable-4.17-e2e-aws-ovn-upgrade
ci/prow/e2e-metal-ipi-ovn-dualstack 58e5fa3 link true /test e2e-metal-ipi-ovn-dualstack
ci/prow/e2e-aws-ovn 58e5fa3 link true /test e2e-aws-ovn
ci/prow/lint 58e5fa3 link true /test lint
ci/prow/e2e-gcp-ovn 58e5fa3 link true /test e2e-gcp-ovn
ci/prow/e2e-aws-ovn-shared-to-local-gateway-mode-migration 58e5fa3 link true /test e2e-aws-ovn-shared-to-local-gateway-mode-migration
ci/prow/e2e-azure-ovn-upgrade 58e5fa3 link true /test e2e-azure-ovn-upgrade
ci/prow/e2e-gcp-ovn-techpreview 58e5fa3 link true /test e2e-gcp-ovn-techpreview
ci/prow/e2e-metal-ipi-ovn-ipv6 58e5fa3 link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/4.18-upgrade-from-stable-4.17-e2e-gcp-ovn-rt-upgrade 58e5fa3 link true /test 4.18-upgrade-from-stable-4.17-e2e-gcp-ovn-rt-upgrade
ci/prow/e2e-aws-ovn-local-to-shared-gateway-mode-migration 58e5fa3 link true /test e2e-aws-ovn-local-to-shared-gateway-mode-migration
ci/prow/e2e-aws-ovn-edge-zones 58e5fa3 link true /test e2e-aws-ovn-edge-zones
ci/prow/e2e-aws-ovn-local-gateway 58e5fa3 link true /test e2e-aws-ovn-local-gateway
ci/prow/security 58e5fa3 link false /test security
ci/prow/e2e-aws-ovn-hypershift 58e5fa3 link true /test e2e-aws-ovn-hypershift
ci/prow/e2e-aws-ovn-windows 58e5fa3 link true /test e2e-aws-ovn-windows
ci/prow/okd-scos-e2e-aws-ovn 58e5fa3 link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-aws-ovn-upgrade-local-gateway 58e5fa3 link true /test e2e-aws-ovn-upgrade-local-gateway
ci/prow/e2e-aws-ovn-upgrade 58e5fa3 link true /test e2e-aws-ovn-upgrade

Full PR test history. Your PR dashboard.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants