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

Multicast fixes and enable/disable annotation #12650

Merged

Conversation

danwinship
Copy link
Contributor

This cleans up the multicast code a bit and adds support for an annotation on NetNamespace to enable/disable multicast. (https://bugzilla.redhat.com/show_bug.cgi?id=1415318)

Um, was there some reason we decided on an annotation rather than adding a new NetNamespace field?

@openshift/networking PTAL (noting that dcbw is on PTO so don't expect him to review it :)

Oh, the first commit ("Add comment pointing out incorrect SDN annotation naming") is from #12627

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. Just a small nit about the naming, but nothing critical.

@@ -178,6 +182,10 @@ func (np *networkPolicyPlugin) GetNamespaces(vnid uint32) []string {
return np.vnids.GetNamespaces(vnid)
}

func (np *networkPolicyPlugin) GetMCEnabled(vnid uint32) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for saying MC rather than spelling out Muticast? I'm not sure I'll remember MC == multicast in a couple of months...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

@knobunc knobunc requested a review from rajatchopra January 24, 2017 19:21
@danwinship danwinship force-pushed the multicast-fixes-and-annotation branch from 8311af3 to 1822ec7 Compare January 24, 2017 20:40
@knobunc
Copy link
Contributor

knobunc commented Jan 25, 2017

[test]

@danwinship
Copy link
Contributor Author

flake #12667 [test]

1 similar comment
@danwinship
Copy link
Contributor Author

flake #12667 [test]

@knobunc
Copy link
Contributor

knobunc commented Jan 26, 2017

[merge]

The multicast subnet's base address and mask happen to have the same
bit pattern, but it's better style to not depend on that and just use
ParseCIDR() rather than ParseIP() here.
The table 110 rule was specifying "ip, nw_dst=224.0.0.0/3", but it
didn't need to because that was already specified in the rule leading
to that table. Also, specify an explicit priority for consistency.
When a NetNamespace is renumbered, update its multicast rules from the
NetNamespace notification directly, rather than having the podManager
individually move each pod one-by-one from the old VNID rule to the
new one.
Since the CNI_UPDATE code no longer needs a runningPod object, just
return the changed vnid from update() instead, so we don't need to
call ovs.GetOFPort() again.
To avoid DoS attacks, we should filter out disallowed outbound
multicast packets on the sending end, not just on the receiving end.
@danwinship danwinship force-pushed the multicast-fixes-and-annotation branch from 1822ec7 to 8ba9e66 Compare January 27, 2017 22:14
@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 8ba9e66

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 8ba9e66

@openshift-bot
Copy link
Contributor

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

@openshift-bot
Copy link
Contributor

openshift-bot commented Jan 28, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13398/) (Base Commit: 6ceb412) (Image: devenv-rhel7_5804)

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.

3 participants