RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1464029 - registries configuration in /etc/containers/registries.conf is comments out in RHELAH 7.4 cloud image
Summary: registries configuration in /etc/containers/registries.conf is comments out i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Brent Baude
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-22 10:14 UTC by Joy Pu
Modified: 2019-03-06 01:01 UTC (History)
5 users (show)

Fixed In Version: atomic-1.18.1-3.1.git0705b1b
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-02 00:16:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The registries.conf copied from the image (deleted)
2017-06-22 10:14 UTC, Joy Pu
no flags Details
registries conf file from the image (819 bytes, text/plain)
2017-06-22 10:22 UTC, Joy Pu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2348 0 normal SHIPPED_LIVE atomic bug fix and enhancement update 2017-08-08 22:52:08 UTC

Description Joy Pu 2017-06-22 10:14:13 UTC
Description of problem:

The registeries in /etc/containers/registries.conf is comments out wiht "#" in rhelah 7.4 cloud image. So the registry.access.redhat.com is not added to docker services and docker will try to download image from docker.io instead of registry.access.redhat.com.


Version-Release number of selected component (if applicable):
rpm is broken (Bug 1462979 - /var/lib/rpm setup broken for RHELAH 7.4 cloud image)
so can just get the version from docker version:

# docker version
Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-38.1.git6ffd653.el7.x86_64
 Go version:      go1.8.3
 Git commit:      6ffd653/1.12.6
 Built:           Tue Jun 13 13:54:30 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-38.1.git6ffd653.el7.x86_64
 Go version:      go1.8.3
 Git commit:      6ffd653/1.12.6
 Built:           Tue Jun 13 13:54:30 2017
 OS/Arch:         linux/amd64


ostree status:
# ostree admin status
* rhel-atomic-host c55bf46b4baaee58d637774e8515bc7e88b96e4acf099d8bca39c27757201442.0
    Version: 7.4.0
    origin refspec: rhel-atomic-host:rhel-atomic-host/7/x86_64/standard


image:
rhel-atomic-cloud-7.4.0-6.x86_64.vhd


How reproducible:
100%


Steps to Reproduce:
1. sodu docker pull rhel7
2. sudo docker images and check the image name


Actual results:
image is downloaded from docker.io

Expected results:
image is downloaded from registry.access.redhat.com


Additional info:

Comment 2 Joy Pu 2017-06-22 10:22:17 UTC
Created attachment 1290626 [details]
registries conf file from the image

Comment 5 Alex Jia 2017-07-05 09:27:22 UTC
[cloud-user@atomic-host-test ~]$ atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                Version: 7.4.0 (2017-06-30 18:37:40)
                 Commit: 8018f95c2f2f38a79e68f174dd5888b53769c0e4adcd89c87a802219091c9d0e
           GPGSignature: 1 signature
                         Signature made Fri 30 Jun 2017 06:59:48 PM UTC using RSA key ID 199E2F91FD431D51
                         Good signature from "Red Hat, Inc. <security>"

[cloud-user@atomic-host-test ~]$ grep -E "^registries:" -A1 /etc/containers/registries.conf
registries:
  - registry.access.redhat.com

[cloud-user@atomic-host-test ~]$ sudo docker pull rhel7
Using default tag: latest
Trying to pull repository registry.access.redhat.com/rhel7 ... 
latest: Pulling from registry.access.redhat.com/rhel7
d55ab3b04d8b: Pull complete 
b94f985aad49: Pull complete 
Digest: sha256:582cb940a6e730dbdffee7cc5e1983522fdeeb3c40bea7373b255a209124cc02
[cloud-user@atomic-host-test ~]$ sudo docker images
REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
registry.access.redhat.com/rhel7   latest              93bb76ddeb7a        13 days ago         192.7 MB

Comment 7 errata-xmlrpc 2017-08-02 00:16:27 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-2017:2348


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