Bug 1879904 - [OVN]Egressfirewall cannot work in latest nightly builds
Summary: [OVN]Egressfirewall cannot work in latest nightly builds
Keywords:
Status: CLOSED DUPLICATE of bug 1879908
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jacob Tanenbaum
QA Contact: Anurag saxena
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-17 10:31 UTC by huirwang
Modified: 2020-09-17 14:20 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-17 14:20:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description huirwang 2020-09-17 10:31:34 UTC
Description of problem: 
Egressfirewall cannot work in latest nightly builds

Version-Release number of the following components: 
4.6.0-0.nightly-2020-09-17-050000 
4.6.0-0.nightly-2020-09-16-062819 
 
How reproducible: 
Always 

Steps to Reproduce:
1. Create namespace test and pods in it.
oc get pods -n test
NAME        READY   STATUS    RESTARTS   AGE
hello-pod   1/1     Running   0          3m19s
2. Create EgressFirewall in ns test
oc get egressfirewall default -n test -o yaml
apiVersion: k8s.ovn.org/v1
kind: EgressFirewall
metadata:
  creationTimestamp: "2020-09-17T09:52:14Z"
  generation: 2
  managedFields:
  - apiVersion: k8s.ovn.org/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        .: {}
        f:egress: {}
    manager: oc
    operation: Update
    time: "2020-09-17T09:52:14Z"
  - apiVersion: k8s.ovn.org/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        .: {}
        f:status: {}
    manager: ovnkube
    operation: Update
    time: "2020-09-17T09:52:14Z"
  name: default
  namespace: test
  resourceVersion: "58745"
  selfLink: /apis/k8s.ovn.org/v1/namespaces/test/egressfirewalls/default
  uid: 34c66bd5-7c28-45d4-8bee-40fc362907f3
spec:
  egress:
  - to:
      cidrSelector: 0.0.0.0/0
    type: Deny
status:
  status: EgressFirewall Rules applied
  
  
3. From hello-pod to access public websites.

Acutal Result:
Still can acess. EgressFirewall doesnt take effect.

 oc rsh -n test hello-pod
/ # curl www.test.com
<html><head><title>301 Moved Permanently</title></head><body bgcolor='white'><center><h1>301 Moved Permanently</h1><h2>Object moved to <a href='https://www.test.com/'>here</a>.</h2></center><hr><center>DOSarrest Internet Security</center></body></html>
/ # exit
Expected Result
EgressFirewall  should take effect.

Comment 1 Jacob Tanenbaum 2020-09-17 14:20:27 UTC

*** This bug has been marked as a duplicate of bug 1879908 ***


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