Hide Forgot
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 ~]#
Reproducer: [root@intel-e31225-8-3 yum]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.0.40-1 subscription management rules: 5.24.1 subscription-manager: 1.18.9-1.el6 python-rhsm: 1.18.6-1.el6 [root@intel-e31225-8-3 yum]# subscription-manager identity system identity: 3c65be69-5edd-4b07-b154-20ba7352949d name: intel-e31225-8-3.englab.nay.redhat.com org name: 11343157 org ID: 11343157 [root@intel-e31225-8-3 yum]# sed -i "s/CERTIFICATE/BAD CERTIFICATE/" /etc/pki/consumer/cert.pem [root@intel-e31225-8-3 yum]# subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information.
Preliminary Verification: [root@hp-dl160g8-1 subscription_manager]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.0.40-1 subscription management rules: 5.24.1 subscription-manager: 1.20.2-1.el7 python-rhsm: 1.20.2-1.el7 [root@hp-dl160g8-1 subscription_manager]# subscription-manager identity system identity: f0c56ce7-07fd-403c-b297-5acfe06a923f name: hp-dl160g8-1.gsslab.pek2.redhat.com org name: 11343157 org ID: 11343157 [root@hp-dl160g8-1 subscription_manager]# sed -i "s/CERTIFICATE/BAD CERTIFICATE/" /etc/pki/consumer/cert.pem [root@hp-dl160g8-1 subscription_manager]# subscription-manager identity Consumer identity either does not exist or is corrupted. Try register --help