Bug 1555215
| Summary: | subscription-manager register --type=RHUI fails to pass the consumer type to Candlepin [rhel-7.5.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Oneata Mircea Teodor <toneata> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | urgent | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
| Priority: | urgent | ||
| Version: | 7.5 | CC: | candlepin-bugs, cdonnell, csnyder, jsefler, rbiba, rhsm-qe, salmy, toneata |
| Target Milestone: | rc | Keywords: | Regression, ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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 19:12:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1554482 | ||
| Bug Blocks: | |||
|
Description
Oneata Mircea Teodor
2018-03-14 07:51:23 UTC
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 --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 --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 |