Skip to content

Fix NATting of external traffic with ovs-networkpolicy - #13877

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
danwinship:networkpolicy-external
Apr 27, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
danwinship:networkpolicy-external

Conversation

@danwinship

Copy link
Copy Markdown
Contributor

Traffic to external sites with ovs-networkpolicy was broken because calling ct(commit) for our own purposes blocked iptables from acting on the packets, so they wouldn't get NATted.

(This is part of the same breakage that caused #12837, but this part of the bug was never caught because we didn't put "external connectivity" in the acceptance criteria so it wasn't part of the QE tests. And we don't test ovs-networkpolicy at all in jenkins because of #13049.)

This patch just assumes that ct zone "1" is unused. Maybe we should use a randomer number? Making it configurable seems like overkill...

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1443765

@openshift/networking PTAL

@knobunc

knobunc commented Apr 24, 2017

Copy link
Copy Markdown
Contributor

I don't much like 1 either... it feels like that might collide with someone else. Full configurability is a pain, but picking another random zone seems fraught with peril too. I guess I'd argue that we let people configure it per-node, but I'm not wedded to that position.

@rajatchopra

Copy link
Copy Markdown
Contributor

ENV var? That can be set in the systemd config etc?

@danwinship

Copy link
Copy Markdown
Contributor Author

kubernetes has a command-line option to let you override which bit of the mark it uses in its iptables rules, which is similar to this. Ugh.

How about I change it from 1 to 13877 (in honor of this PR) and we can backport that to release-1.5 and then worry about configurability later.

@rajatchopra

Copy link
Copy Markdown
Contributor

How about I change it from 1 to 13877 (in honor of this PR)

Right logic, yeah. +1 :). Put a comment though that this number is not special.

@danwinship
danwinship force-pushed the networkpolicy-external branch from 6509e6c to bd52879 Compare April 24, 2017 18:49
@danwinship

Copy link
Copy Markdown
Contributor Author

(done)

@rajatchopra rajatchopra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@knobunc

knobunc commented Apr 24, 2017

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to bd52879

@openshift-bot

Copy link
Copy Markdown
Contributor

@eparis

eparis commented Apr 27, 2017

Copy link
Copy Markdown
Member

[merge] #13650

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to bd52879

@openshift-bot

openshift-bot commented Apr 27, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/493/) (Base Commit: 3415fc1) (Image: devenv-rhel7_6184)

@openshift-bot
openshift-bot merged commit 0571ad8 into openshift:master Apr 27, 2017
@danwinship
danwinship deleted the networkpolicy-external branch May 31, 2017 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants