Builds fail, integrated registry is not configured in OpenShift 4.x
Issue
- All builds won't start
-
In OpenShift events, get an invalid output error:
31s Warning InvalidOutput Build Error starting build: an image stream cannot be used as build output because the integrated Docker registry is not configured
-
In the integrated container registry, we see these logs with a secret not found
$ oc logs cluster-image-registry-operator-6d6b45bfdf-fl9mk I0221 14:32:30.227426 1 main.go:24] Cluster Image Registry Operator Version: v4.0.0-0.150.0.0-dirty I0221 14:32:30.228037 1 main.go:25] Go Version: go1.10.3 I0221 14:32:30.228046 1 main.go:26] Go OS/Arch: linux/amd64 I0221 14:32:30.278201 1 controller.go:371] waiting for informer caches to sync I0221 14:32:31.480835 1 controller.go:380] started events processor E0221 14:37:31.514363 1 controller.go:208] unable to sync: unable to apply objects: failed to create object *v1.Secret, Namespace=openshift-image-registry, Name=image-registry-private-configuration: unable to get cluster minted credentials "kube-system/installer-cloud-credentials": secrets "image-registry-private-configuration-user" not found, requeuing W0221 14:40:31.295881 1 reflector.go:272] k8s.io/client-go/informers/factory.go:130: watch of *v1.ConfigMap ended with: too old resource version: 636035 (640932) W0221 14:42:12.289238 1 reflector.go:272] k8s.io/client-go/informers/factory.go:130: watch of *v1.ConfigMap ended with: too old resource version: 636035 (641936) E0221 14:42:31.573087 1 controller.go:208] unable to sync: unable to apply objects: failed to create object *v1.Secret, Namespace=openshift-image-registry, Name=image-registry-private-configuration: unable to get cluster minted credentials "kube-system/installer-cloud-credentials": secrets "image-registry-private-configuration-user" not found, requeuing
Environment
- Red Hat OpenShift Container Platform
- 4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.