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 1184940

Summary: Subscription Manager Container Plugin Requires Config / CA Cert Updates
Product: Red Hat Enterprise Linux 7 Reporter: Devan Goodwin <dgoodwin>
Component: subscription-managerAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.1CC: acarter, bkearney, scollier, wpoteat
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-27 18:14:50 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:
Bug Depends On:    
Bug Blocks: 1005618    

Description Devan Goodwin 2015-01-22 14:16:41 UTC
Description of problem:

For docker pull to "just work" for RHEL content once entitlement enforcement is enabled, the default configuration for subscription-manager-plugin-container needs slight changes to configure the correct directories.

Also, we need to drop the Red Hat CA in these directories for Docker.


Current directories configured are: registry.access.redhat.com,cdn.redhat.com

We need to add the alias access.redhat.com, and place Red Hat CA cert in all three.

Comment 3 John Sefler 2015-01-27 18:14:50 UTC
The code implemented to address this bug actually introduced new bug 1186386.  Hence this implementation FailsQA.  Returning this as a dup of bug 1186386 is the easiest way to close this bug in favor of bug 1186386 which will contain the needed fixes.


Testing this offending version...
[root@10-16-7-142 ~]# rpm -q subscription-manager-plugin-container
subscription-manager-plugin-container-1.13.18-1.el7.x86_64
[root@10-16-7-142 ~]# 
[root@10-16-7-142 ~]# rpm -ql subscription-manager-plugin-container | grep certs.d
/etc/docker/certs.d/access.redhat.com
/etc/docker/certs.d/access.redhat.com/redhat-uep.crt
/etc/docker/certs.d/cdn.redhat.com
/etc/docker/certs.d/cdn.redhat.com/redhat-uep.crt
/etc/docker/certs.d/registry.access.redhat.com
/etc/docker/certs.d/registry.access.redhat.com/redhat-uep.crt
[root@10-16-7-142 ~]# 

The problem with subscription-manager-plugin-container-1.13.18-1 is that it lays down the three directories above with a renamed copy of /etc/rhsm/ca/redhat-uep.pem in each of the directories.  This causes a problem when running docker pull for images from registry.access.redhat.com as explained in https://bugzilla.redhat.com/show_bug.cgi?id=1186386#c2


[root@10-16-7-142 ~]# docker pull rhel7
Pulling repository rhel7
FATA[0002] Get https://registry.access.redhat.com/v1/repositories/library/rhel7/tags: x509: certificate signed by unknown authority 
[root@10-16-7-142 ~]# 

Note: These docker attempts are being done without any attached atomic subscriptions.

[root@10-16-7-142 registry.access.redhat.com]# subscription-manager list --consumed
No consumed subscription pools to list

*** This bug has been marked as a duplicate of bug 1186386 ***