Uploaded image for project: 'Cert Manager support for Red Hat OpenShift'
  1. Cert Manager support for Red Hat OpenShift
  2. CM-763

Operator logs shows infinite Update operations after enabling multiple user-defined network policies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • OAPE Sprint 279
    • 1
    • Important

      Steps to reproduce:

      1. Install the latest staging cert-manager 1.18.0 operator
      2. Enable the defaultNetworkPolicy through CertManager CR
      3. Configure multiple user-defined networkPolicies[]
      4. Monitor the operator controller logs for a period of time (> 1h)
      5. Grep the `NetworkPolicyUpdated` event (see attachment), the controller continuously updating the same 4 network policies every ~ 400ms - 800ms
      oc patch certmanager.operator cluster --type=merge -p='
      spec:
        defaultNetworkPolicy: "true"
      '
      
      oc patch certmanager.operator cluster --type=merge -p='
      spec:
        defaultNetworkPolicy: "true"
        networkPolicies:
        - componentName: CoreController
          egress:
          - ports:
            - port: 80
              protocol: TCP
            - port: 443
              protocol: TCP
          name: allow-egress-to-acme-server
        - componentName: CoreController
          egress:
          - ports:
            - port: 53
              protocol: UDP
            - port: 53
              protocol: TCP
          name: allow-egress-to-dns-service
        - componentName: CoreController
          egress:
          - ports:
            - port: 3128
              protocol: TCP
          name: allow-egress-to-proxy
        - componentName: CoreController
          egress:
          - ports:
            - port: 8200
              protocol: TCP
          name: allow-egress-to-vault-server
      '
      
      # wait for some time (~1h) to gather sufficient logs
      oc logs <pod_name> -n cert-manager-operator

      Expected result: Logs should not show repeatedly `NetworkPolicyUpdated` and associated events if no human operation to the spec.networkPolicies[] at all. Unnecessary API server load, excessive event generation, and client-side throttling should be eliminated.

              rh-ee-yuewu Yuedong Wu
              rh-ee-yuewu Yuedong Wu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: