Bug 1889943

Summary: EgressNetworkPolicy does not work when setting Allow rule to a dnsName
Product: OpenShift Container Platform Reporter: yhe
Component: NetworkingAssignee: Alexander Constantinescu <aconstan>
Networking sub component: openshift-sdn QA Contact: huirwang
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aconstan, huirwang
Version: 4.4Keywords: Reopened
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1891454 (view as bug list) Environment:
Last Closed: 2021-02-24 15:27:07 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:
Bug Depends On:    
Bug Blocks: 1891454    

Description yhe 2020-10-21 03:07:52 UTC
Description of problem:
EgressNetworkPolicy works as expected when setting the Allow rule to a cidrSelector, but when setting the Allow rule to a dnsName, the access to the dnsName is blocked.
After checking the ovs rules in the ovs pod, the Allow rule is added to the ovs rules in the cidrSelector case but is not added to the ovs rules in the dnsName case.
Will upload the checking results later.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create an EgressNetworkPolicy with an Allow rule to a dnsName.
2. Check whether the access to the dnsName can get through
3.

Actual results:
The access is blocked

Expected results:
The access can get through

Additional info:

Comment 14 Alexander Constantinescu 2020-10-26 09:32:06 UTC
*** Bug 1812333 has been marked as a duplicate of this bug. ***

Comment 33 errata-xmlrpc 2021-02-24 15:27:07 UTC
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633