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 1536726 - docker 1.12.6-68.gitec8512b.el7 does not provide secrets
Summary: docker 1.12.6-68.gitec8512b.el7 does not provide secrets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1186913 1513780
TreeView+ depends on / blocked
 
Reported: 2018-01-20 09:48 UTC by Jaroslav Spanko
Modified: 2021-08-30 11:40 UTC (History)
6 users (show)

Fixed In Version: docker-1.13.1-48.gitec9911e.el7_4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-07 09:51:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3327941 0 None None None 2018-01-26 13:12:10 UTC
Red Hat Product Errata RHBA-2018:0436 0 normal SHIPPED_LIVE docker bug fix and enhancement update 2018-03-07 14:51:35 UTC

Description Jaroslav Spanko 2018-01-20 09:48:02 UTC
Description of problem:
Seems like the latest version of docker does not provide /usr/share/rhel/secrets.
So in case of update docker via yum swap or clean installation the containers are not able to obtain subscription from the host till manually creating these file as workaround. 

In case of update all is OK.

Version-Release number of selected component (if applicable):
1.12.6-68.gitec8512b.el7

How reproducible:
100%

Steps to Reproduce:
1. Install 1.12.6-68.gitec8512b.el7
2. No /usr/share/rhel/secrets 
3. 

Actual results:
containers are not able to obtain subscription from the host 

Expected results:
Docker provides /usr/share/rhel/secrets again

Additional info 
# yum provides /usr/share/rhel/secrets
2:docker-1.12.6-28.git1398f24.el7.x86_64 : Automates deployment of containerized
2:docker-1.12.6-32.git88a4867.el7.x86_64 : Automates deployment of containerized
2:docker-1.12.6-48.git0fdc778.el7.x86_64 : Automates deployment of containerized
2:docker-1.12.6-55.gitc4618fb.el7.x86_64 : Automates deployment of containerized
2:docker-1.12.6-61.git85d7426.el7.x86_64 : Automates deployment of containerized

Thanks !

Comment 3 Daniel Walsh 2018-01-22 13:20:49 UTC
Does this come from skopeo-containers?

Comment 4 Jaroslav Spanko 2018-01-25 14:13:26 UTC
moving to skopeo as it looks like problem there for now ...
Thanks !

Comment 5 Derrick Ornelas 2018-01-26 17:21:17 UTC
(In reply to Daniel Walsh from comment #3)
> Does this come from skopeo-containers?

Yes, the entitlement problem is caused by missing /usr/share/rhel/secrets/ which is now provided by skopeo-containers instead of docker.  I think the fix is to have docker-1.12.6-68.gitec8512b.el7 (and newer) have a dependency on skopeo-containers >= 0.1.26-2.dev.git2e8377a.el7

See my example below:


** Start with docker-1.12.6-61.git85d7426.el7

# rpm -q docker
docker-1.12.6-61.git85d7426.el7.x86_64

# rpm -qf /usr/share/rhel/secrets/
docker-1.12.6-61.git85d7426.el7.x86_64

# docker pull rhel7
Using default tag: latest
Trying to pull repository registry.access.redhat.com/rhel7 ... 
latest: Pulling from registry.access.redhat.com/rhel7

9a32f102e677: Already exists 
b8aa42cec17a: Already exists 
Digest: sha256:66bf4409e707da5c08fd0f03c653d0954ade3b6d9dfadd07edf7a0cb1bd9c42f

# docker run --name test -ti rhel7 bash
[root@e6314cc0c78b /]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                       | 2.0 kB  00:00:00     
(1/3): rhel-7-server-rpms/7Server/x86_64/group                                                                                           | 595 kB  00:00:00     
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                      | 2.2 MB  00:00:00     
(3/3): rhel-7-server-rpms/7Server/x86_64/primary                                                                                         |  39 MB  00:00:02     
rhel-7-server-rpms                                                                                                                                  18022/18022
repo id                                                                   repo name                                                                       status
!rhel-7-server-rpms/7Server/x86_64                                        Red Hat Enterprise Linux 7 Server (RPMs)                                        31329
repolist: 31329

[root@e6314cc0c78b /]# exit



** Update docker

# yum update docker
Loaded plugins: search-disabled-repos
rhel-7-server-extras-rpms                                                                                                                | 2.0 kB  00:00:00     
rhel-7-server-rh-common-rpms                                                                                                             | 2.1 kB  00:00:00     
rhel-7-server-rpms                                                                                                                       | 2.0 kB  00:00:00     
Resolving Dependencies
[...]
Dependencies Resolved

================================================================================================================================================================
 Package                                  Arch                    Version                                      Repository                                  Size
================================================================================================================================================================
Updating:
 docker                                   x86_64                  2:1.12.6-71.git3e8e77d.el7                   rhel-7-server-extras-rpms                   15 M
Updating for dependencies:
 docker-client                            x86_64                  2:1.12.6-71.git3e8e77d.el7                   rhel-7-server-extras-rpms                  3.4 M
 docker-common                            x86_64                  2:1.12.6-71.git3e8e77d.el7                   rhel-7-server-extras-rpms                   83 k
 docker-rhel-push-plugin                  x86_64                  2:1.12.6-71.git3e8e77d.el7                   rhel-7-server-extras-rpms                  1.6 M
 oci-register-machine                     x86_64                  1:0-3.14.gitcd1e331.el7                      rhel-7-server-extras-rpms                  1.1 M

Transaction Summary
================================================================================================================================================================
Upgrade  1 Package (+4 Dependent packages)

[...]
Updated:
  docker.x86_64 2:1.12.6-71.git3e8e77d.el7                                                                                                                      

Dependency Updated:
  docker-client.x86_64 2:1.12.6-71.git3e8e77d.el7     docker-common.x86_64 2:1.12.6-71.git3e8e77d.el7 docker-rhel-push-plugin.x86_64 2:1.12.6-71.git3e8e77d.el7
  oci-register-machine.x86_64 1:0-3.14.gitcd1e331.el7

Complete!


# docker start -ai test
[root@e6314cc0c78b /]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
repolist: 0

[root@e6314cc0c78b /]# ls -l /etc/pki/entitlement-host 
lrwxrwxrwx. 1 root root 32 Jan 18 16:40 /etc/pki/entitlement-host -> /run/secrets/etc-pki-entitlement

[root@e6314cc0c78b /]# ls -l /run/secrets/etc-pki-entitlement
ls: cannot access /run/secrets/etc-pki-entitlement: No such file or directory

[root@e6314cc0c78b /]# exit


# docker run --name test2 -ti rhel7 bash
[root@ed2bcb987134 /]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
repolist: 0

[root@ed2bcb987134 /]# exit


** Both existing container and new container don't have access to entitlements



# ls -l /usr/share/rhel/secrets/
ls: cannot access /usr/share/rhel/secrets/: No such file or directory



** Install skopeo-containers-0.1.26-2.dev.git2e8377a.el7 which provides /usr/share/rhel/secrets/

# yum update skopeo-containers-0.1.26-2.dev.git2e8377a.el7 skopeo-0.1.26-2.dev.git2e8377a.el7
Loaded plugins: search-disabled-repos
rhel-7-server-extras-rpms                                                                                                                | 2.0 kB  00:00:00     
rhel-7-server-rh-common-rpms                                                                                                             | 2.1 kB  00:00:00     
rhel-7-server-rpms                                                                                                                       | 2.0 kB  00:00:00     
Resolving Dependencies
[...]
Dependencies Resolved

================================================================================================================================================================
 Package                             Arch                     Version                                         Repository                                   Size
================================================================================================================================================================
Updating:
 skopeo                              x86_64                   1:0.1.26-2.dev.git2e8377a.el7                   rhel-7-server-extras-rpms                   3.2 M
 skopeo-containers                   x86_64                   1:0.1.26-2.dev.git2e8377a.el7                   rhel-7-server-extras-rpms                    12 k

Transaction Summary
================================================================================================================================================================
Upgrade  2 Packages

[...]
Updated:
  skopeo.x86_64 1:0.1.26-2.dev.git2e8377a.el7                               skopeo-containers.x86_64 1:0.1.26-2.dev.git2e8377a.el7                              

Complete!


# rpm -qf /usr/share/rhel/secrets/
skopeo-containers-0.1.26-2.dev.git2e8377a.el7.x86_64


# docker start -ai test2
[root@ed2bcb987134 /]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                       | 2.0 kB  00:00:00     
(1/3): rhel-7-server-rpms/7Server/x86_64/group                                                                                           | 595 kB  00:00:00     
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                      | 2.2 MB  00:00:00     
(3/3): rhel-7-server-rpms/7Server/x86_64/primary                                                                                         |  39 MB  00:00:02     
rhel-7-server-rpms                                                                                                                                  18022/18022
repo id                                                                   repo name                                                                       status
!rhel-7-server-rpms/7Server/x86_64                                        Red Hat Enterprise Linux 7 Server (RPMs)                                        31329
repolist: 31329

Comment 6 Lokesh Mandvekar 2018-02-05 18:45:16 UTC
fixing this bug in 7.4.5 itself, cause that will reduce mess for 7.5

Comment 11 errata-xmlrpc 2018-03-07 09:51:51 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:0436


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