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.
Description of problem:
yum repolist all fails after subscribing to a pool On Premises
Version-Release number of selected component (if applicable):
[root@jsefler-rhel6-client01 pki]# rpm -q subscription-manager
subscription-manager-0.93.0-1.git.60.65c1da8.fc12.i386
[root@jsefler-f12-candlepin candlepin]# git show-ref master
262ed34fb883b8f57fe040bdd108ab9153ac5e51 refs/heads/master
262ed34fb883b8f57fe040bdd108ab9153ac5e51 refs/remotes/origin/master
Steps to Reproduce:
[root@jsefler-rhel6-client01 pki]# subscription-manager-cli register --username=testuser1 --password=password
9f8e117a-5a64-4a63-9de6-e67bfb49094b testuser1
[root@jsefler-rhel6-client01 pki]# yum repolist all
Loaded plugins: refresh-packagekit, rhnplugin, rhsmplugin
Updating Red Hat repositories.
INFO:repolib:repos updated: 0
This system is not registered with RHN.
RHN support will be disabled.
repo id repo name status
rhel-beta Red Hat Enterprise Linux 5.90Server Beta - x86_64 disabled
rhel-beta-debuginfo Red Hat Enterprise Linux 5.90Server Beta - x86_64 - Debuginfo disabled
rhel-beta-optional Red Hat Enterprise Linux 5.90Server Beta (Optional) - x86_64 disabled
rhel-beta-optional-debuginfo Red Hat Enterprise Linux 5.90Server Beta (Optional) - x86_64 - Debuginfo disabled
rhel-beta-optional-source Red Hat Enterprise Linux 5.90Server Beta (Optional) - x86_64 - Source disabled
rhel-beta-source Red Hat Enterprise Linux 5.90Server Beta - x86_64 - Source disabled
rhel-clustered-storage-beta Red Hat Enterprise Linux 5.90Server Clustered Storage Beta - x86_64 disabled
rhel-high-availability-beta Red Hat Enterprise Linux 5.90Server High Availability Beta - x86_64 disabled
rhel-large-filesystem-beta Red Hat Enterprise Linux 5.90Server Large Filesystem Beta - x86_64 disabled
rhel-load-balance-beta Red Hat Enterprise Linux 5.90Server Load Balance Beta - x86_64 disabled
repolist: 0
[root@jsefler-rhel6-client01 pki]# subscription-manager-cli list --available | grep PoolId
PoolId: ff8080812be40338012be40473fb00cb
PoolId: ff8080812be40338012be40474f500d0
PoolId: ff8080812be40338012be404750200d1
PoolId: ff8080812be40338012be404751900d2
PoolId: ff8080812be40338012be404748200cc
PoolId: ff8080812be40338012be40474c000cd
PoolId: ff8080812be40338012be40474e200cf
[root@jsefler-rhel6-client01 pki]# subscription-manager-cli subscribe --pool=ff8080812be40338012be40473fb00cb
[root@jsefler-rhel6-client01 pki]# yum repolist all
Loaded plugins: refresh-packagekit, rhnplugin, rhsmplugin
Updating Red Hat repositories.
ERROR:certlib:File: /etc/pki/entitlement/key.pem, not loaded
140714675316480:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:698:Expecting: CERTIFICATE
INFO:repolib:repos updated: 3
ERROR:certlib:File: /etc/pki/entitlement/key.pem, not loaded
140714675316480:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:698:Expecting: CERTIFICATE
Options Error: Error parsing "gpgkey = 'http/foo/path/never/gpg'": URL must be http, ftp, file or https not ""
^ DID NOT EXPECT THOSE ERRORS
I HAVE NOTICED THAT key.pem IS NEWLY BEING DROPPED INTO /etc/pki/entitlement
NOT SURE WHY. LOOKS LIKE yum DOES NOT LIKE IT.
VERSION
[root@jsefler-onprem01 ~]# rpm -q subscription-manager
subscription-manager-0.93.2-1.git.82.b7841b3.fc14.x86_64
[root@jsefler-f12-candlepin candlepin]# git show-ref master
5773be9a35b8697e7e53b3ae23fbb38ba881f0e1 refs/heads/master
5773be9a35b8697e7e53b3ae23fbb38ba881f0e1 refs/remotes/origin/master
[root@jsefler-onprem01 ~]# subscription-manager register --username=testuser1 --password=password
55a1a27c-5640-4149-83df-b886fea6276e testuser1
[root@jsefler-onprem01 ~]# yum repolist all
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
INFO:repolib:repos updated: 3
repo id repo name status
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) enabled: 3,589
repolist: 3,589
[root@jsefler-onprem01 ~]# subscription-manager list --available | grep PoolId
PoolId: ff8080812cc18643012cc1871f2701ed
[root@jsefler-onprem01 ~]# subscription-manager subscribe --pool=ff8080812cc18643012cc1871f2701ed
[root@jsefler-onprem01 ~]# yum repolist all
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
INFO:repolib:repos updated: 3
https://mockamai.devlab.phx1.redhat.com/foo/path/always/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
repo id repo name status
always-enabled-content always-enabled-content enabled: 0
content-label content enabled: 0
never-enabled-content never-enabled-content disabled
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) enabled: 0
repolist: 0
[root@jsefler-onprem01 ~]# ls /etc/pki/entitlement/
1129174797755692.pem key.pem
VERIFIED NO MORE ERROR:certlib:File: /etc/pki/entitlement/key.pem, not loaded
despite the presence of /etc/pki/entitlement/key.pem
moving to VERIFIED
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHEA-2011-0611.html