Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1622830 - oc adm registry is using registry.access.redhat.com to pull image by default
oc adm registry is using registry.access.redhat.com to pull image by default
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Release (Show other bugs)
3.11.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.11.0
Assigned To: Ben Parees
Wei Sun
:
: 1624667 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-28 03:08 EDT by Wenjing Zheng
Modified: 2018-10-11 03:26 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:25:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:26 EDT

  None (edit)
Description Wenjing Zheng 2018-08-28 03:08:07 EDT
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 11:05:54 EDT
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 09:39:46 EDT
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 10:10:32 EDT
https://github.com/openshift/ose/pull/1397
Comment 5 Ben Parees 2018-09-04 11:11:02 EDT
*** Bug 1624667 has been marked as a duplicate of this bug. ***
Comment 7 Wenjing Zheng 2018-09-06 02:24:28 EDT
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 03:25:54 EDT
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.