Bug 1764220
| Summary: | NetworkPolicies are unintuitive when trying to allow hostnetwork pods. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Samuel <smoro> |
| Component: | Documentation | Assignee: | Jason Boxman <jboxman> |
| Status: | CLOSED DUPLICATE | QA Contact: | Xiaoli Tian <xtian> |
| Severity: | urgent | Docs Contact: | Vikram Goyal <vigoyal> |
| Priority: | unspecified | ||
| Version: | 4.2.0 | CC: | aos-bugs, bbennett, cdc, jboxman, jokerman, robertodocampo |
| Target Milestone: | --- | ||
| Target Release: | 4.3.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-01-28 22:53:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Samuel
2019-10-22 13:39:29 UTC
We certainly need to update the documentation for this. Are we sure this is an issue with the docs? I've had the same issue with 3.11 a few weeks ago, I'm still waiting on an answer from support (https://access.redhat.com/support/cases/#/case/02458754). Is it normal for hostNetwork Pods traffic, to belong to network id 0? Kinda defeats the purpose of NetworkPolicies. I would argue this is a bug: allowing routers in, we would actually trust any other hostNetwork Pod, regardless of its Project. What about Kuryr? ACI? ... (in 3.x, though hopefully in 4 soon). Haven't had a chance to use those yet: is it a behavior we would reproduce with non-OVS SDN plugins? Didn't we get any complaints? There are two parts to this. 1) The router needs hostnetworking. That will be addressed by https://bugzilla.redhat.com/show_bug.cgi?id=1768608 2) We need to clearly document that hostnetwork pods are not constrained by network policy *** Bug 1750429 has been marked as a duplicate of this bug. *** The 4.x documentation updates[0] for this are tracked in a different bz[1]. I'm going to close this and post updates there. The work for 3.11 documentation updates is tracked in a different bz[2]. [0] https://github.com/openshift/openshift-docs/pull/19360 [1] https://bugzilla.redhat.com/show_bug.cgi?id=1768608 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1750429 *** This bug has been marked as a duplicate of bug 1768608 *** |