Bug 1905792 - [OVN]Cannot create egressfirewalll with dnsName
Summary: [OVN]Cannot create egressfirewalll with dnsName
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.7.0
Assignee: Jacob Tanenbaum
QA Contact: huirwang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-09 05:05 UTC by huirwang
Modified: 2021-02-24 15:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:41:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-network-operator pull 908 0 None closed Bug 1905792: changes to egressfirewall CRD to accommodate DNS names 2021-01-02 03:51:18 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:41:35 UTC

Description huirwang 2020-12-09 05:05:12 UTC
Description of problem:
Cannot create egressfirewalll with dnsName

Version-Release number of selected component (if applicable):
4.7.0-0.ci-2020-12-08-014807

How reproducible:
Always

Steps to Reproduce:
1. oc create ns test
namespace/test created
2. oc create -f tmp/egressfirewall/eg_policy_dnsname1.yaml  -n test
The EgressFirewall "default" is invalid: spec.egress.to.cidrSelector: Required value


cat tmp/egressfirewall/eg_policy_dnsname1.yaml 
kind: EgressFirewall
apiVersion: k8s.ovn.org/v1
metadata:
  name: default 
spec:
  egress:
  - type: Allow
    to:
      dnsName: www.test.com 
    ports:
      - protocol: TCP
        port: 80
  - type: Deny
    to:
      cidrSelector: 0.0.0.0/0

Actual results:
The EgressFirewall "default" is invalid: spec.egress.to.cidrSelector: Required value

Expected results:
Should create egressfirewall object successfully.

Additional info:
From DEV, issue is we have not updated the CRD in the CNO to reflect the upstream changes

Comment 3 huirwang 2020-12-15 02:48:28 UTC
Verified in 4.7.0-0.nightly-2020-12-14-165231 .


huiran-mac:script hrwang$ cat eg_policy_dnsname1.yaml 
kind: EgressFirewall
apiVersion: k8s.ovn.org/v1
metadata:
  name: default
spec:
  egress:
  - type: Allow
    to:
      dnsName: www.test.com
  - type: Allow
    to:
      dnsName: www.yahoo.com
    ports:
      - protocol: TCP
        port: 80
  - type: Deny
    to:
      cidrSelector: 0.0.0.0/0

huiran-mac:script hrwang$ oc create -f eg_policy_dnsname1.yaml  -n test
egressfirewall.k8s.ovn.org/default created

Comment 6 errata-xmlrpc 2021-02-24 15:41:14 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


Note You need to log in before you can comment on or make changes to this bug.