Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7988

Egress firewall is not retried on error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.12
    • None
    • No
    • SDN Sprint 232, SDN Sprint 233
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Egress firewall returned error is overridden by the status update error, and never returned.

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create egress firewall with bad cidr
      kind: EgressFirewall
      apiVersion: k8s.ovn.org/v1
      metadata:
        name: default
        namespace: default
      spec:
        egress:
        - type: Allow
          to:
            cidrSelector: 1.2.3.345/32 
      2. Before fix: you should see the log "Creating *v1.EgressFirewall default/default took: 4.662942ms" 3. After fix: you should see the log "Failed to create *v1.EgressFirewall default/default, error: cannot create EgressFirewall Rule to destination 1.2.3.345/32 for namespace default: invalid CIDR address: 1.2.3.345/32" 
      4. These logs are mutually exclusive, check one of them is present and the other is not

      Actual results:

       

      Expected results:

       

      Additional info:

       

              npinaeva@redhat.com Nadia Pinaeva
              npinaeva@redhat.com Nadia Pinaeva
              Huiran Wang Huiran Wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: