Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-1551

Argo CD application controller cannot establish watch on Project.project.openshift.io

XMLWordPrintable

    • 2
    • False
    • False
    • GITOPS Service EE Sprint 256, GITOPS Service EE Sprint 257

      Cluster-scoped GitOps instances are not able to establish a watch on  the Project.project.openshift.io API and will log an error when trying to do so such as the following:

      time="2021-11-17T15:33:21Z" level=info msg="Failed to watch Project.project.openshift.io on https://api.example.com:6443: initial RV \"\" is not supported due to issues with underlying WATCH, retrying in 1s" server="https://api.example.com:6443"
      

      The error itself comes from the Kubernetes client API, which fails to establish the watch when the resource version of the API in question is empty or 0.

      A workaround for this is to exclude the Project resource from Argo CD. This can be done using the following configuration snippet in the ArgoCD Operand:

      spec: 
        resourceExclusions: |
        - apiGroups:
          - project.openshift.io
          kinds: 
          - Project
          clusters:
          - "*"
      

      Root cause is unknown yet and needs investigation.

              rh-ee-rnaaz Rizwana Naaz
              jfischer@redhat.com Jann Fischer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: