forked from openshift/ovn-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gatewayCleanup doesn't delete rtoj* ports
Currently gatewayCleanup doesn't delete rtoj-* ports which is fine since it deletes the router and probably on the OVN side the ports on the router are also removed as they are dependent on the router. However from a testing perspective its nice to have the gatewayCleanup remove these ports explictly just like multiJoinSwitchGatewayCleanup does. Corresponding gatewayCleanup unit tests are also updated. We also add a unit test to egressip testing where we test reassignment upon egress node deletion, specifically where the node has already gotten deleted by the node watcher. This test uncovers a bug we have in egressIP code where the reassignment will not be successful and will fail with the error E0608 09:42:53.781497 971577 obj_retry.go:1513] Failed to delete resource object node1 of type *factory.egressNode, error: Re-assignment for EgressIP: egressip failed, unable to update object, err: unable to retrieve gateway IP for node: node1, protocol is IPv6: false, err: attempt at finding node gateway router network information failed, err: unable to find router port rtoj-GR_node1: object not found Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com> (cherry picked from commit 9d0aebe)
- Loading branch information
Showing
3 changed files
with
275 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters