Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1158642

Summary: docker pull looks in /etc/pki/entitlemenets/$registryhostname/ which doesn't exist
Product: Red Hat Enterprise Linux 7 Reporter: Adrian Likins <alikins>
Component: dockerAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: aweiteka
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-07 21:58:05 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:
Attachments:
Description Flags
Docker patch to handle RHEL entitlements none

Description Adrian Likins 2014-10-29 19:05:08 UTC
Description of problem:

An extension of https://bugzilla.redhat.com/show_bug.cgi?id=1158082 
1158082 is a subset of this bug. The code for checking /etc/pki/entitlements directly can be excised with introduction of subscription-manager-plugin-container (which sets up /etc/docker/certs.d)

If a docker pull ends up looking for a registry hostname that exists in
/etc/docker/certs.d/$registryhostname, and there are certs in that dir, then
it tries to also find certs in /etc/pki/entitlement/$registryhostname/  which
doesn't exist and is not set up by subscription-manager.

This assumes a fix for https://bugzilla.redhat.com/show_bug.cgi?id=1158082 (the ' /etc/pki/entitlement' typo). Otherwise it fails there.


AFAIK, there isn't anything expected to be in /etc/pki/entitlement/$registryhostname/, and that section can likely be removed (so just
/etc/docker/certs.d/$registryhostname is checked).


Version-Release number of selected component (if applicable):
docker-1.2.0-1.7.el7.x86_64  (atomic host beta)


Steps to Reproduce:
0. fix or patch around 
1. subscrption-manager register to stage, attach employee sku (which has containerimage content associated with it). The attach will create /etc/docker/certs.d/registry.access.redhat.com/ and put links of the ent certs there.
2. docker pull rhel7

Comment 2 Daniel Walsh 2014-10-29 20:34:35 UTC
Bottom line we should just be searching /etc/docker/certs.d/HOSTNAME/
for *key, *pem and *cert files.

I am attaching the current patch I have for docker to just handle the differnt name format.

Comment 3 Daniel Walsh 2014-10-29 20:35:13 UTC
Created attachment 951910 [details]
Docker patch to handle RHEL entitlements

Comment 4 Daniel Walsh 2014-10-31 12:29:45 UTC
Should be fixed in docker-1.2.0-1.8.el7