Description of problem: In disconnected install we have the image in the local environment however the installer tries to pull from registry.redhat.com. --------- spec: containers: - name: registry-console image: ${IMAGE_PREFIX}registry-console:${IMAGE_VERSION} --------- Where "IMAGE_PREFIX" is set as below : ---------- parameters: - description: 'Specify "registry/repository" prefix for container image; e.g. for "registry.access.redhat.com/openshift3/registry-console:latest", set prefix "registry.access.redhat.com/openshift3/"' name: IMAGE_PREFIX value: "registry.access.redhat.com/openshift3/" ------------- and reports below error : it seems that registry-console will only retrieve an image from registry.access.redhat.com which is blocked and unaccessible 33s 33s 1 registry-console-1-n0bkc Pod Normal Scheduled {default-scheduler } Successfully assigned registry-console-1-n0bkc to appduv03a6.example.com 19s 32s 2 registry-console-1-n0bkc Pod spec.containers{registry-console} Normal Pulling {kubelet appduv03a6.example.com} pulling image "registry.access.redhat.com/openshift3/registry-console:3.3" 19s 32s 2 registry-console-1-n0bkc Pod spec.containers{registry-console} Warning Failed {kubelet appduv03a6.example.com} Failed to pull image "registry.access.redhat.com/openshift3/registry-console:3.3": image pull failed for registry.access.redhat.com/openshift3/registry-console:3.3, this may be because there are no credentials on this request. details: (All endpoints blocked for registry.access.redhat.com/openshift3/registry-console) 19s 32s 2 registry-console-1-n0bkc Pod Warning FailedSync {kubelet appduv03a6.example.com} Error syncing pod, skipping: failed to "StartContainer" for "registry-console" with ErrImagePull: "image pull failed for registry.access.redhat.com/openshift3/registry-console:3.3, this may be because there are no credentials on this request. details: (All endpoints blocked for registry.access.redhat.com/openshift3/registry-console)" [root@appduv03a6 openshift-ansible]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE localhost:5000/openshift3/node v3.3.1.3 5baf0d6d2f91 2 weeks ago 811.3 MB localhost:5000/openshift3/ose-deployer v3.3.1.3 d9211d1fbdf0 2 weeks ago 600.5 MB localhost:5000/openshift3/ose-haproxy-router v3.3.1.3 429236641214 2 weeks ago 616.9 MB localhost:5000/openshift3/ose-docker-registry v3.3.1.3 abc5d476ab4e 2 weeks ago 671.2 MB localhost:5000/openshift3/openvswitch v3.3.1.3 34b5adfed6c3 2 weeks ago 302.3 MB localhost:5000/openshift3/ose latest 60dc22e4b5f3 2 weeks ago 600.5 MB localhost:5000/openshift3/ose v3.3.1.3 60dc22e4b5f3 2 weeks ago 600.5 MB localhost:5000/openshift3/ose-pod v3.3.1.3 45a5aa9c7f2c 2 weeks ago 214 MB localhost:5000/rhel7/etcd latest 812f1495ac21 8 weeks ago 245.5 MB Also, curl -X GET http://localhost:5000/v2/openshift3/registry-console/tags/list {"name":"openshift3/registry-console","tags":["v3.3.1.3","v3.3"]} Also, you have changed the version naming convention on this tag from v3.3 (the others are v3.3.1.3) but this one just required 3.3 without the "v" it's v3.3 on the satellite repository (and therefore in registry.access.redhat.com) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This looks to be fixed in 3.4 (but please note https://bugzilla.redhat.com/show_bug.cgi?id=1419493).
This can be configured by setting openshift_cockpit_deployer_prefix and has been this way since inception. Was going to move this onto QA but noticed it's not documented in the examples so i did that. https://github.com/openshift/openshift-ansible/pull/3317
Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/00f438ac92323cf3f2109adb7f2f70998f77bc23 Document openshift_cockpit_deployer_prefix and add openshift_cockpit_deployer_version Fixes Bug 1393666
Verified this bug with openshift-ansible-3.5.6-1.git.0.5e6099d.el7.noarch, and PASS. The same verification step as https://bugzilla.redhat.com/show_bug.cgi?id=1383275#c6
If you want "registry-console" not a hardcod either, pls reopen this bug. --------- spec: containers: - name: registry-console image: ${IMAGE_PREFIX}registry-console:${IMAGE_VERSION} ---------
In latest openshift build - atomic-openshift-3.5.0.35-1.git.0.b806d03.el7.x86_64, openshift-ansible-3.5.17-1.git.0.561702e.el7.noarch we see that registry-console image comes with the prefix - registry.access.redhat.com: oc get dc registry-console -o yaml | grep image image: registry.access.redhat.com/openshift3/registry-console:3.5 But the latest openshift3.5 are not available in registry.access.redhat.com and hence registry-console pod fails.
*** This bug has been marked as a duplicate of bug 1383275 ***
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days