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 - Subscription Manager Container Plugin Requires Config / CA Cert Updates
Summary: Subscription Manager Container Plugin Requires Config / CA Cert Updates
Keywords:
Status: CLOSED DUPLICATE of bug 1186386
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Devan Goodwin
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel71
TreeView+ depends on / blocked
 
Reported: 2015-01-22 14:16 UTC by Devan Goodwin
Modified: 2015-01-27 18:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-27 18:14:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0502 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2015-03-05 16:20:39 UTC

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 ***


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