Bug 1281735
Summary: | image stream is referencing non-existing images from internal docker-registry | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> |
Component: | Image Registry | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | ge liu <geliu> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.1.0 | CC: | aos-bugs, maszulik, mfojtik, pweil, rhowe, tdawson, xtian |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: |
undefined
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-04-12 19:04:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Johnny Liu
2015-11-13 10:46:39 UTC
This is not a bug, for now it's intended behavior. We're discussing the output of oc describe and oc get regarding image streams in https://github.com/openshift/origin/issues/5927. So the output will be changed in the coming release, here I suggest add "UpcomingRelease" keyword, and keep this bug opened status to track this issue. *** Bug 1330720 has been marked as a duplicate of this bug. *** After a fresh 3.1 install # oc get is Will still display the wrong docker repo for the rhel7 images streams added by the installer. This is misleading. /usr/share/openshift/examples/image-streams/image-streams-rhel7.json While jboss image streams are correctly configured. /usr/share/openshift/examples/xpaas-streams/jboss-image-streams.json What is missing is dockerImageRepository being defined, since it is not defined it gets defaulted to the internal registry. "spec": { "dockerImageRepository": "registry.access.redhat.com/XXXXX" Either this needs to be documented as to why we want to show the internal registry as the docker repo or corrected by adding dockerImageRepository equal to the registry from which the image is being pulled. bump? On my radar. Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/7df259d03a0bcbd75e9cc51f7699c8b25f3431e1 Bug 1281735 - remove the internal docker registry information from imagestream Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/b222c23aeeeba1753cbc186185de482d8e7a0f33 Revert "Bug 1281735 - remove the internal docker registry information from imagestream" The change was reverted in https://github.com/openshift/origin/pull/10343 assigning back to myself. Based on this comment [1] we can't remove that now, it'll be fixed in one of the future versions. [1] https://github.com/openshift/origin/pull/10239#issuecomment-238995216 I'm closing this in favor of https://trello.com/c/lsWunRTg/858-need-to-advertise-a-public-pull-spec-for-image since this will be addressing this problem. Actually, with pullthrough logic [1] which is on by default, users are able to pull from the internal address already, so moving to on-qa. [1] https://github.com/openshift/origin/blob/a5eaf994f6e86e28bff529de7da66a708f029699/pkg/dockerregistry/server/repositorymiddleware.go#L177 Verified in env: [root@openshift-129 ~]# openshift version openshift v3.4.0.38 kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 [root@openshift-137 ~]# docker login -u geliu -p Rxy-aZj-Im-lGBbqCaA-YNm712g4IhDRQt-d05ik5L8 -e geliu 172.xxx.7.5:5000 Flag --email has been deprecated, will be removed in 1.13. Login Succeeded [root@dhcp-137-141 ~]# oc get is NAME DOCKER REPO TAGS UPDATED hello-openshift 172.xxx.7.5:5000/lgproj/hello-openshift latest 2 hours ago [root@openshift-137 ~]# docker pull 172.xxx.7.5:5000/lgproj/hello-openshift Using default tag: latest Trying to pull repository 172.xxx.7.5:5000/lgproj/hello-openshift ... sha256:5d2a5bf63f70ac2f963044e1961ca43c79352f57eebd6318b82c1d696310f3e4: Pulling from 172.30.7.5:5000/lgproj/hello-openshift 5e96ef59afb4: Pull complete Digest: sha256:5d2a5bf63f70ac2f963044e1961ca43c79352f57eebd6318b82c1d696310f3e4 Status: Downloaded newer image for 172.xxx.7.5:5000/lgproj/hello-openshift:latest [root@openshift-137 ~]# Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884 |