Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1555215 - subscription-manager register --type=RHUI fails to pass the consumer type to Candlepin [rhel-7.5.z]
subscription-manager register --type=RHUI fails to pass the consumer type to ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager (Show other bugs)
7.5
Unspecified Unspecified
urgent Severity urgent
: rc
: ---
Assigned To: candlepin-bugs
Red Hat subscription-manager QE Team
Marc Muehlfeld
: Regression, ZStream
Depends On: 1554482
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-14 03:51 EDT by Oneata Mircea Teodor
Modified: 2018-04-10 15:12 EDT (History)
8 users (show)

See Also:
Fixed In Version: subscription-manager-1.20.11-1.el7_5
Doc Type: Bug Fix
Doc Text:
Previously, when subscribing Red Hat Enterprise Linux by passing the "--type=RHUI" option to the subscription-manager utility, incorrect data was sent to the server. As a consequence, the system was registered as type "virtual" or "physical" instead of "RHUI". This update fixes the problem. As a result, subscription-manager now works as expected when using the "--type=RHUI" option.
Story Points: ---
Clone Of: 1554482
Environment:
Last Closed: 2018-04-10 15:12:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1052 None None None 2018-04-10 15:12 EDT

  None (edit)
Description Oneata Mircea Teodor 2018-03-14 03:51:23 EDT
This bug has been copied from bug #1554482 and has been proposed to be backported to 7.5 z-stream (EUS).
Comment 6 John Sefler 2018-03-15 18:20:56 EDT
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.
Comment 11 errata-xmlrpc 2018-04-10 15:12:37 EDT
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

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