Bug 1622830 - oc adm registry is using registry.access.redhat.com to pull image by default
Summary: oc adm registry is using registry.access.redhat.com to pull image by default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Release
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.11.0
Assignee: Ben Parees
QA Contact: Wei Sun
URL:
Whiteboard:
: 1624667 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-28 07:08 UTC by Wenjing Zheng
Modified: 2018-10-11 07:26 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 07:25:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:26:26 UTC

Description Wenjing Zheng 2018-08-28 07:08:07 UTC
Description of problem:
oc adm registry is using registry.access.redhat.com to pull image, it should use registry.redhat.io by default:
Events:
  Type     Reason          Age              From                           Message
  ----     ------          ----             ----                           -------
  Normal   Scheduled       13s              default-scheduler              Successfully assigned wzheng1/docker-registry-1-r9tz7 to qe-wzheng-311-node-1
  Normal   Pulling         12s              kubelet, qe-wzheng-311-node-1  pulling image "registry.access.redhat.com/openshift3/ose-docker-registry:v3.11.0-0.24.0"
  Warning  Failed          11s              kubelet, qe-wzheng-311-node-1  Failed to pull image "registry.access.redhat.com/openshift3/ose-docker-registry:v3.11.0-0.24.0": rpc error: code = Unknown desc = Error reading manifest v3.11.0-0.24.0 in registry.access.redhat.com/openshift3/ose-docker-registry: error parsing HTTP 404 response body: invalid character 'F' looking for beginning of value: "File not found.\""
  Warning  Failed          11s              kubelet, qe-wzheng-311-node-1  Error: ErrImagePull
  Normal   SandboxChanged  10s              kubelet, qe-wzheng-311-node-1  Pod sandbox changed, it will be killed and re-created.
  Normal   BackOff         7s (x2 over 8s)  kubelet, qe-wzheng-311-node-1  Back-off pulling image "registry.access.redhat.com/openshift3/ose-docker-registry:v3.11.0-0.24.0"
  Warning  Failed          7s (x2 over 8s)  kubelet, qe-wzheng-311-node-1  Error: ImagePullBackOff


Version-Release number of selected component (if applicable):
v3.11.0-0.24.0

How reproducible:
always

Steps to Reproduce:
1.oc adm regsitry
2.
3.

Actual results:
oc adm registry is using registry.access.redhat.com to pull image

Expected results:
it should use registry.redhat.io by default

Additional info:
The help page of oc adm registry needs to be updated too:
Options:
     --images='registry.access.redhat.com/openshift3/ose-${component}:${version}': The image to base this registry on -
${component} will be replaced with --type

Comment 1 Ben Parees 2018-08-28 15:05:54 UTC
this value ultimately comes from $OS_IMAGE_PREFIX which must be getting set during the OCP build process.  Sounds like it's currently set to registry.access.redhat.com and should be set to registry.redhat.io for 3.11+.


Sending over to the release team.

Comment 2 Ben Parees 2018-09-04 13:39:46 UTC
Clayton, what is responsible for setting the "${OS_GO_PACKAGE}/pkg/cmd/util/variable.DefaultImagePrefix value in OSE builds?  it is currently being set to registry.access.redhat.com which is incorrect.

https://github.com/openshift/origin/blob/master/hack/lib/constants.sh#L124

Comment 4 Ben Parees 2018-09-04 14:10:32 UTC
https://github.com/openshift/ose/pull/1397

Comment 5 Ben Parees 2018-09-04 15:11:02 UTC
*** Bug 1624667 has been marked as a duplicate of this bug. ***

Comment 7 Wenjing Zheng 2018-09-06 06:24:28 UTC
Verified with below version:
oc v3.11.0-0.28.0
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO
Events:
  Type     Reason          Age              From                                   Message
  ----     ------          ----             ----                                   -------
  Normal   Scheduled       11s              default-scheduler                      Successfully assigned test/docker-registry-1-5rwz6 to ip-172-18-13-50.ec2.internal
  Normal   Pulling         9s               kubelet, ip-172-18-13-50.ec2.internal  pulling image "registry.redhat.io/openshift3/ose-docker-registry:v3.11.0-0.28.0"
  Warning  Failed          8s               kubelet, ip-172-18-13-50.ec2.internal  Failed to pull image "registry.redhat.io/openshift3/ose-docker-registry:v3.11.0-0.28.0": rpc error: code = Unknown desc = Get https://registry.redhat.io/v2/openshift3/ose-docker-registry/manifests/v3.11.0-0.28.0

Comment 9 errata-xmlrpc 2018-10-11 07:25:54 UTC
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-2018:2652


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