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

[Bug] ImagePullBackOff while enabling keycloak

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 1.9.1
    • None

      Description of problem: 

      While enabling keycloak for 1.9.1 and 1.9.0, keycloak pod is not able to pull keycloak image.

      Prerequisites (if any, like setup, operators/versions):

      occuring on 1.9 and 1.9.1 RC

      Steps to Reproduce

      Remove dex configuration from ArgoCD CR
      $ oc -n openshift-gitops patch argocd openshift-gitops --type='json' -p='[

      {"op": "remove", "path": "/spec/sso" }

      ]'

      Add to the ArgoCD CR :

      $ oc edit argocd -n openshift-gitops 

      Add below snippet code 

      spec:
        extraConfig:
          oidc.tls.insecure.skip.verify: 'true' 
        sso:
          provider: keycloak
          keycloak:
            rootCA: "---BEGIN---END---" 

      Restart argocd server pod
      $ oc rollout restart deployment.apps/openshift-gitops-server -n openshift-gitops

       

      Actual results:

      Failing with ImagePullBackOff error 

      Back-off pulling image "registry.redhat.io/rh-sso-7/sso75-openshift-rhel8@sha256:d5829e880db4b82a50a4962d61ea148522a93644174931b256d7ad866eadcf40"

      Expected results:

      keycloak-1-deploy pod should be up without any error

      Reproducibility (Always/Intermittent/Only Once): always

      Acceptance criteria: 

      • KeyCloak pod should be up 
      • we should be able to log in using keyCloak sso 

      Definition of Done:
      **

      • Acceptance criteria are met

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      log:
      Back-off pulling image "registry.redhat.io/rh-sso-7/sso75-openshift-rhel8@sha256:d5829e880db4b82a50a4962d61ea148522a93644174931b256d7ad866eadcf40"

       *

       

      Events from openshift-gitops namespace:

      LAST SEEN   TYPE      REASON           OBJECT                 MESSAGE
      3m55s       Normal    Scheduled        pod/keycloak-1-9p7bl   Successfully assigned openshift-gitops/keycloak-1-9p7bl to ip-10-0-142-179.us-east-2.compute.internal
      3m54s       Normal    AddedInterface   pod/keycloak-1-9p7bl   Add eth0 [10.129.2.228/23] from openshift-sdn
      2m31s       Normal    Pulling          pod/keycloak-1-9p7bl   Pulling image "registry.redhat.io/rh-sso-7/sso75-openshift-rhel8@sha256:d5829e880db4b82a50a4962d61ea148522a93644174931b256d7ad866eadcf40"
      2m30s       Warning   Failed           pod/keycloak-1-9p7bl   Failed to pull image "registry.redhat.io/rh-sso-7/sso75-openshift-rhel8@sha256:d5829e880db4b82a50a4962d61ea148522a93644174931b256d7ad866eadcf40": rpc error: code = Unknown desc = fetching target platform image selected from manifest list: reading manifest sha256:783e96e2d9fbce3aac018e506486a00709527b496214e6c25eaf4263f0cde8e4 in brew.registry.redhat.io/rh-sso-7/sso75-openshift-rhel8: name unknown: Digest not found
      2m30s       Warning   Failed           pod/keycloak-1-9p7bl   Error: ErrImagePull
      113s        Normal    BackOff          pod/keycloak-1-9p7bl   Back-off pulling image "registry.redhat.io/rh-sso-7/sso75-openshift-rhel8@sha256:d5829e880db4b82a50a4962d61ea148522a93644174931b256d7ad866eadcf40"
      2m5s        Warning   Failed           pod/keycloak-1-9p7bl   Error: ImagePullBackOff 

              aveerama@redhat.com Abhishek Veeramalla
              rh-ee-ansingh Anand Singh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: