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

Fixes incorrect GR hairpin flows #3201

Merged
merged 1 commit into from Oct 5, 2022

Conversation

trozet
Copy link
Contributor

@trozet trozet commented Oct 4, 2022

Now that the special masquerade IPs are assigned to the interface, they default flows that end up DNAT'ing return traffic from the GR->host from masquerade ip -> host ip were being overridden with secondary ip flows for extra ips. This fixes it by skipping special ips when evaluting the extra ips on a node.

Signed-off-by: Tim Rozet trozet@redhat.com

Now that the special masquerade IPs are assigned to the interface, they
default flows that end up DNAT'ing return traffic from the GR->host from
masquerade ip -> host ip were being overridden with secondary ip flows
for extra ips. This fixes it by skipping special ips when evaluting the
extra ips on a node.

Signed-off-by: Tim Rozet <trozet@redhat.com>
@trozet
Copy link
Contributor Author

trozet commented Oct 4, 2022

downstream is passing with this fix:
openshift/ovn-kubernetes#1289

Not sure why dual-conversion still flaking. Attempting to reproduce that locally.

Copy link
Contributor

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, good catch.

I took a brief look into the code and it seems it isn't easy to add unit tests to check this.

@andreaskaris
Copy link
Collaborator

lgtm +1

Copy link
Collaborator

@andreaskaris andreaskaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@trozet trozet merged commit af71f80 into ovn-org:master Oct 5, 2022
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.

None yet

3 participants