Bug 1813846
Summary: | Pod selector in network policy not working for newly created pods | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Federico Paolinelli <fpaoline> |
Component: | Networking | Assignee: | Alexander Constantinescu <aconstan> |
Networking sub component: | openshift-sdn | QA Contact: | huirwang |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | aconstan, huirwang, jboxman |
Version: | 4.5 | ||
Target Milestone: | --- | ||
Target Release: | 4.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-13 17:20:18 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
Federico Paolinelli
2020-03-16 09:57:05 UTC
Hi, Is this an issue in earlier versions (4.1 - 4.3) of OCP? If so, I can add a note to the docs. Thanks. Yes, it is can be reproduced in 4.1/4.2/4.3 too. Is there any workaround for this? Thanks! Delete networkpolicy and create it again. Verified in version 4.5.0-0.nightly-2020-03-20-044324 . Followed steps as description. The networkpolicy works. oc create ns policytest oc create -f policy.yaml oc create -f server.yaml oc create -f client.yaml oc get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES tcpclient 1/1 Running 0 14s 10.130.2.17 ip-10-0-172-24.us-east-2.compute.internal <none> <none> tcpserver 1/1 Running 0 24s 10.129.2.9 ip-10-0-138-102.us-east-2.compute.internal <none> <none> huiran-mac:script hrwang$ oc rsh tcpserver sh-5.0# sh-5.0# sh-5.0# nc -k -l -p 30011 oc rsh tcpclient sh-5.0# echo aaa | nc 10.129.2.9 30011 Ncat: TIMEOUT. I created a PR[0] to mention this in the docs, for customers that may not immediately upgrade to the latest version with a fix. [0] https://github.com/openshift/openshift-docs/pull/20691 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |