Repository navigation
Fix NATting of external traffic with ovs-networkpolicy - #13877
Conversation
|
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. |
|
ENV var? That can be set in the systemd config etc? |
|
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. |
Right logic, yeah. +1 :). Put a comment though that this number is not special. |
6509e6c to
bd52879
Compare
|
(done) |
|
[merge] |
|
[Test]ing while waiting on the merge queue |
|
Evaluated for origin test up to bd52879 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/910/) (Base Commit: 71f0a06) |
|
[merge] #13650 |
|
Evaluated for origin merge up to bd52879 |
|
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) |
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