Skip to content

Fix OVS connection tracking in networkpolicy plugin - #12837

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
danwinship:fix-conntrack
Feb 8, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
danwinship:fix-conntrack

Conversation

@danwinship

Copy link
Copy Markdown
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
Copy Markdown

LGTM

@knobunc knobunc 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 Feb 7, 2017

Copy link
Copy Markdown
Contributor

[merge]

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

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to e0e118a

@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 e0e118a

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

openshift-bot commented Feb 7, 2017 •

Copy link
Copy Markdown
Contributor

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.

4 participants