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.

Bug 1485008

Summary: subscription-manager register --type="RHUI" or --type="rhui" should both work as documented in various KBase articles
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: high    
Version: 7.5CC: csnyder, jhnidek, jsefler, khowell, rbiba, redakkan, skallesh
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.20.2-1 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 09:51:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Sefler 2017-08-24 20:06:18 UTC
Description of problem:
Changes were made in RFE Bug 1461003 to remove the ability for subscription-manager to register using the --type option.  However to maintain compatibility for RHUI consumers, the ability to specify --type="rhui" was silently kept.

The problem is that the previously accepted value for type was case insensitive and there are KBase articles that demonstrate registering with --type=RHUI and --type=rhui.  Therefore subscription-manager should maintain case insensitivity for RHUI. 

Referenced KBase Articles:
https://access.redhat.com/solutions/1171863
https://access.redhat.com/solutions/2959581
https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/3.0/html/system_administrators_guide/registration_and_subscriptions



Version-Release number of selected component (if applicable):
[root@jsefler-rhel7 ~]# 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.1-1.git.27.b65dbce.el7
python-rhsm: 1.20.1-1.git.0.b65dbce.el7


How reproducible:


Steps to Reproduce:
[root@jsefler-rhel7 ~]# subscription-manager register --type=RHUI
Error: The --type option has been deprecated and may not be used.
[root@jsefler-rhel7 ~]# subscription-manager register --type=rHuI
Error: The --type option has been deprecated and may not be used.
[root@jsefler-rhel7 ~]# subscription-manager register --type=rhui
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: qa
Password: 
The system has been registered with ID: 64d2e2d1-48b2-44af-836e-2eb2664e386b 
The registered system name is: jsefler-rhel7.usersys.redhat.com
[root@jsefler-rhel7 ~]# 

Actual results:
above

Expected results:
subscription-manager should allow a case-insensitive RhUi type to pass through to candlepin registration.

Additional info:

Comment 4 Shwetha Kallesh 2017-11-13 09:05:32 UTC
Verified! Subscription-manager allows case-insenstive RHUI and RHui to pass through candlepin registration
[root@dhcp35-121 rhn]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.43-1
subscription management rules: 5.26
subscription-manager: 1.20.5-1.el7

[root@dhcp35-121 rhn]# subscription-manager register --type=RHUI
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_tier1_test
Password: 
The system has been registered with ID: 5ad66de6-946b-43c7-b6f4-93e918e278cf
The registered system name is: dhcp35-121.lab.eng.blr.redhat.com
[root@dhcp35-121 rhn]# subscription-manager register --type=rHuI --force
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID 5ad66de6-946b-43c7-b6f4-93e918e278cf has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_tier1_test
Password: 
The system has been registered with ID: bffc6857-1347-45af-a30a-130c24443eeb
The registered system name is: dhcp35-121.lab.eng.blr.redhat.com
[root@dhcp35-121 rhn]# subscription-manager register --type=rhui --force
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID bffc6857-1347-45af-a30a-130c24443eeb has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_tier1_test
Password: 
The system has been registered with ID: 5054584c-e048-4756-8731-e3876b04b239
The registered system name is: dhcp35-121.lab.eng.blr.redhat.com

Comment 10 errata-xmlrpc 2018-04-10 09:51:13 UTC
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:0681