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

From time to time incomplete RBACs seem to be installed for openshift-gitops (1.5.10+1.7.x)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Undefined
    • None
    • None
    • None
    • False
    • None
    • False

    Description

      Description of problem:

      since a few months (~5-6 months) in our CI for Validated Patterns, we’ve started experiencing a certain rate of failures (15-20% or so) in our jobs. Investigating this further showed that all failing jobs would not proceed due to the following error:

      Error persisting normalized application spec: applications.argoproj.io \"industrial-edge-datacenter\" is forbidden: User \"system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller\" cannot patch resource \"applications\" in API group \"argoproj.io\" in the namespace \"openshift-gitops\"" application=industrial-edge-datacenter{}

      In the failing jobs (this is not always reproducible) it seems that the permissions for the openshift-gitops-argocd-application-controller are missing some bits, namely at least all the permissions around argo applications.{}

      At http://file.rdu.redhat.com/~mbaldess/mlabonte-gitops-permission-timeout/diff-broken-working.txt we can find the diff between a broken environment where the permissions are incomplete and an environment where I installed gitops 1.5.10 by hand.{}

      Additional information:

       

      Are there any other logs/information that I should try and provide to understand this issue a bit more? My current gut feeling is that the RBACs that depend on the ArgoCD CRD that defines applications & co, are not being applied, maybe because when they are being created the CRD has not been fully registered in the APIs?

      Seemingly, we started observing this on and off since last September (see https://issues.redhat.com/browse/MBP-353)

      Reproducibility (Always/Intermittent/Only Once):

      Intermittent

      Build Details:

      1.5.10 and 1.7.x

      OCP 4.10.x and 4.11.x so far{}

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-mbaldess Michele Baldessari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: