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

Fix OVS connection tracking in networkpolicy plugin #12837

Merged
merged 1 commit into from Feb 8, 2017

Conversation

danwinship
Copy link
Contributor

In a last-minute attempt to get Services mostly-working before submitting the original NetworkPolicy PR, I ended up breaking almost everything else. This fixes it again.

(The difference between actions=ct(commit),goto_table:81 and the fixed actions=ct(commit,table=81) is that former ensures that the packet is tracked but then continues in table 81 with the original (unset) value of ct_state, while the latter ensures that the packet is tracked and then continues in table 81 with ct_state having been filled in from conntrack. In particular, this fixes it so that when a reply comes to a pod-to-pod connection, the ct_state=+trk+est rule will match and accept it regardless of other policies. So without the fix, any test where a pod has to send a reply to a pod it would otherwise be unable to talk to will fail.)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1419393 and https://bugzilla.redhat.com/show_bug.cgi?id=1419469

@openshift/networking PTAL

@pravisankar
Copy link

LGTM

Copy link
Contributor

@knobunc knobunc left a comment

Choose a reason for hiding this comment

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

LGTM

@knobunc
Copy link
Contributor

knobunc commented Feb 7, 2017

[merge]

@knobunc knobunc self-assigned this Feb 7, 2017
@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to e0e118a

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to e0e118a

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13654/) (Base Commit: 2bf65d4)

@openshift-bot
Copy link
Contributor

openshift-bot commented Feb 7, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13685/) (Base Commit: 71a4378) (Image: devenv-rhel7_5872)

@openshift-bot openshift-bot merged commit 1787ac5 into openshift:master Feb 8, 2017
@danwinship danwinship deleted the fix-conntrack branch February 16, 2017 15:52
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.

None yet

4 participants