Bug 1393666 - Image-name for registry-console hardcoded in code.
Summary: Image-name for registry-console hardcoded in code.
Keywords:
Status: CLOSED DUPLICATE of bug 1383275
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-10 06:19 UTC by Jaspreet Kaur
Modified: 2023-09-14 03:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-11 17:02:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0903 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix and enhancement 2017-04-12 22:45:42 UTC

Description Jaspreet Kaur 2016-11-10 06:19:39 UTC
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:

Comment 1 Marko Myllynen 2017-02-08 10:32:19 UTC
This looks to be fixed in 3.4 (but please note https://bugzilla.redhat.com/show_bug.cgi?id=1419493).

Comment 2 Scott Dodson 2017-02-09 18:23:50 UTC
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

Comment 3 openshift-github-bot 2017-02-09 22:30:32 UTC
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

Comment 5 Johnny Liu 2017-02-10 07:39:19 UTC
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

Comment 6 Johnny Liu 2017-02-10 07:42:07 UTC
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}
---------

Comment 7 Apeksha 2017-03-01 12:23:59 UTC
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.

Comment 9 Scott Dodson 2017-04-11 17:02:32 UTC

*** This bug has been marked as a duplicate of bug 1383275 ***

Comment 10 Red Hat Bugzilla 2023-09-14 03:34:09 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.