Red Hat Bugzilla – Bug 1555215
subscription-manager register --type=RHUI fails to pass the consumer type to Candlepin [rhel-7.5.z]
Last modified: 2018-04-10 15:12:41 EDT
This bug has been copied from bug #1554482 and has been proposed to be backported to 7.5 z-stream (EUS).
Reproducer on a RHEL7.5 system.... [root@ibm-x3650m4-01-vm-04 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo) [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# rpm -qa | grep subscription-manager subscription-manager-rhsm-certificates-1.20.10-1.el7.x86_64 subscription-manager-rhsm-1.20.10-1.el7.x86_64 subscription-manager-1.20.10-1.el7.x86_64 [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# subscription-manager register --username=qa@redhat.com --type=RHUI Registering to: subscription.rhsm.redhat.com:443/subscription Password: The system has been registered with ID: e8c833e2-fa5b-49f7-9764-7e7a34ed167e The registered system name is: ibm-x3650m4-01-vm-04.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# curl -k --stderr /dev/null --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem 'https://subscription.rhsm.redhat.com:443/subscription/consumers/e8c833e2-fa5b-49f7-9764-7e7a34ed167e?include=type' | python -m json.tool { "type": { "id": "0", "label": "system", <====== FAIL: expected "label": "RHUI" "manifest": false } } After upgrading (not shown) subscription-manager to the build (1.20.11-1.el7_5) targeted for RHEL7.5.z... [root@ibm-x3650m4-01-vm-04 ~]# rpm -qa | grep subscription-manager subscription-manager-rhsm-certificates-1.20.11-1.el7_5.x86_64 subscription-manager-1.20.11-1.el7_5.x86_64 subscription-manager-rhsm-1.20.11-1.el7_5.x86_64 [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# subscription-manager unregister Unregistering from: subscription.rhsm.redhat.com:443/subscription System has been unregistered. [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# subscription-manager register --username=qa@redhat.com --type=RHUI Registering to: subscription.rhsm.redhat.com:443/subscription Password: The system has been registered with ID: 95a2f800-6a05-46b8-9b94-d2102982fc66 The registered system name is: ibm-x3650m4-01-vm-04.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# [root@ibm-x3650m4-01-vm-04 ~]# curl -k --stderr /dev/null --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem 'https://subscription.rhsm.redhat.com:443/subscription/consumers/95a2f800-6a05-46b8-9b94-d2102982fc66?include=type' | python -m json.tool { "type": { "id": "4", "label": "RHUI", <====== SUCCESS: verified "label": "RHUI" "manifest": false } } [root@ibm-x3650m4-01-vm-04 ~]# subscription-manager unregister Unregistering from: subscription.rhsm.redhat.com:443/subscription System has been unregistered. [root@ibm-x3650m4-01-vm-04 ~]# VERIFIED: registration with --type=RHUI correctly passes the data to the entitlement server.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:1052