-
Bug
-
Resolution: Done
-
Major
-
RH-SSO-7.6.3
-
False
-
None
-
False
-
Workaround Exists
-
-
-
1. Issue description
When trying to deploy RH-SSO 7.6.3 operator, the posgresSQL pod is not coming up
2. Troubleshooting done
oc get pods
NAME READY STATUS RESTARTS AGE
keycloak-0 0/1 Running 3 (5m20s ago) 23m
keycloak-postgresql-78fbd5bd6d-qq2rg 0/1 ImagePullBackOff 0 3m8s
rhsso-operator-68dc844487-wnr6q 1/1 Running 0 25m
The event log trace shows:
Normal AddedInterface 3m39s multus Add eth0 [10.217.0.79/23] from openshift-sdn
Normal Pulling 2m12s (x4 over 3m39s) kubelet Pulling image "registry.access.redhat.com/rhscl/postgresql-10-rhel7:1"
Warning Failed 2m9s (x4 over 3m37s) kubelet Failed to pull image "registry.access.redhat.com/rhscl/postgresql-10-rhel7:1": rpc error: code = Unknown desc = Source image rejected: Running image docker://registry.access.redhat.com/rhscl/postgresql-10-rhel7:1 is rejected by policy.
Warning Failed 2m9s (x4 over 3m37s) kubelet Error: ErrImagePull
Warning Failed 107s (x6 over 3m37s) kubelet Error: ImagePullBackOff
The image registry.access.redhat.com/rhscl/postgresql-10-rhel7:1 does not exist
3. About postgresql-10 image
It is defined within redHat catalog at URL
The way to import is:
oc import-image rhscl/postgresql-10-rhel7:1-173 --from=registry.redhat.io/rhscl/postgresql-10-rhel7:1-173 --confirm
4. About postgres pod
oc edit deployment.apps/keycloak-postgresql
- name: POSTGRESQL_DATABASE
value: root
image: registry.access.redhat.com/rhscl/postgresql-10-rhel7:1
imagePullPolicy: Always
===> It is pointing to an image that does not exist.