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

Remove stale LRSRs from default and network scopped cluster router #4679

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arghosh93
Copy link
Contributor

@arghosh93 arghosh93 commented Aug 30, 2024

This PR removes logical router static routes with stale IPs when join or transit switch IP gets changed as part of day 2 operation.

ip4.dst == 10.244.0.0/24 , nexthop = 100.88.0.2 dst-ip
ip4.dst == 100.64.0.2/16 , nexthop = 100.88.0.2 dst-ip
ip4.dst == 10.244.0.0/16 , nexthop = 100.64.0.4 src-ip
ip4.dst == 100.64.0.4 , nexthop = 100.64.0.4 dst-ip
ip4.dst == 10.244.2.0/24 , nexthop = 100.64.0.4 src-ip

What this PR does and why is it needed

Which issue(s) this PR fixes

Fixes #4693 additionally.

Special notes for reviewers

How to verify it

Details to documentation updates

Description for the changelog

Does this PR introduce a user-facing change?


@arghosh93 arghosh93 requested a review from a team as a code owner August 30, 2024 17:57
@github-actions github-actions bot added the area/unit-testing Issues related to adding/updating unit tests label Aug 30, 2024
@tssurya tssurya added the area/core-kubernetes Issues related to core kubernetes like pods, services, endpoints, endpointslices label Aug 31, 2024
This commit is to effectively filter LRSR created for default
cluster router and prevent deletion of any other required routes.

Previous predicate was causing 2 LRSRs to be selected while execution
of CreateOrReplaceLogicalRouterStaticRouteWithPredicate function and
was causing one of the routes to be deleted upon ovnkube-controller
restart.

10.244.0.0/16            100.64.0.4 src-ip
10.244.2.0/24            100.64.0.4 src-ip

Upstream issue: ovn-org#4693

Signed-off-by: Arnab Ghosh <[email protected]>
This PR removes logical router static routes with stale IPs when
join or transit switch IP gets changed as part of day 2 operation.

ip4.dst == 10.244.0.0/24 , nexthop = 100.88.0.2 dst-ip
ip4.dst == 100.64.0.2/16 , nexthop = 100.88.0.2 dst-ip
ip4.dst == 10.244.0.0/16 , nexthop = 100.64.0.4 src-ip
ip4.dst == 100.64.0.4 , nexthop = 100.64.0.4 dst-ip

Signed-off-by: Arnab Ghosh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core-kubernetes Issues related to core kubernetes like pods, services, endpoints, endpointslices area/unit-testing Issues related to adding/updating unit tests
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 LRSR from default cluster router being deleted upon ovnkube-controller restart
2 participants