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:
While troubleshooting some subscription-manager exception handling, we revealed this regression in feedback when a consumer cert has been corrupted. The original feedback implemented in the solution for Bug 607162 informed the user...
"Consumer identity either does not exist or is corrupted. Try register --help"
Which is accurate. This was the behavior from subscription-manager-0.96.17-1 on RHEL62
Today with subscription-manager-1.18 on RHEL69, the less accurate feed back is...
"This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
Version-Release number of selected component (if applicable):
[root@jsefler-rhel6 ~]# rpm -q subscription-manager python-rhsm
subscription-manager-1.18.5-1.el6.x86_64
python-rhsm-1.18.5-1.el6.x86_64
How reproducible:
Steps to Reproduce:
[root@jsefler-rhel6 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com:443/subscription
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: qa
Password:
The system has been registered with ID: 24d1605b-1a31-47d8-a782-56642f908504
[root@jsefler-rhel6 ~]#
[root@jsefler-rhel6 ~]# subscription-manager identity
system identity: 24d1605b-1a31-47d8-a782-56642f908504
name: jsefler-rhel6.usersys.redhat.com
org name: Quality Assurance
org ID: 711497
[root@jsefler-rhel6 ~]#
[root@jsefler-rhel6 ~]# sed -i "s/CERTIFICATE/BAD CERTIFICATE/" /etc/pki/consumer/cert.pem
[root@jsefler-rhel6 ~]#
[root@jsefler-rhel6 ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
[root@jsefler-rhel6 ~]#
Actual results:
"This system is not yet registered. Try 'subscription-manager register --help' for more information."
Expected results:
Expected stderr to tell us that it had trouble loading certificates due to corruption similar to the behavior established in Bug 607162
Additional info:
To demonstrate the original behavior ith feedback that is more accurate, I need to downgrade the packages to the released RHEL6.2 version...
[root@jsefler-rhel6 ~]# yum downgrade subscription-manager* python-rhsm* --enablerepo=released-rhel62-server --quiet --assumeyes
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
warning: /etc/rhsm/rhsm.conf created as /etc/rhsm/rhsm.conf.rpmnew
[root@jsefler-rhel6 ~]#
[root@jsefler-rhel6 ~]# rpm -q subscription-manager python-rhsm
subscription-manager-0.96.17-1.el6.x86_64
python-rhsm-0.96.15-1.el6.noarch
[root@jsefler-rhel6 ~]#
[root@jsefler-rhel6 ~]# subscription-manager identity
Consumer identity either does not exist or is corrupted. Try register --help
[root@jsefler-rhel6 ~]#