Bug 841961 - rhsm-migrate-classic-to-rhsm --servicelevel should be case insensitive
Summary: rhsm-migrate-classic-to-rhsm --servicelevel should be case insensitive
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.9
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 771748
TreeView+ depends on / blocked
 
Reported: 2012-07-20 17:02 UTC by John Sefler
Modified: 2013-01-08 03:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 03:57:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

Comment 1 Bryan Kearney 2012-08-17 18:07:44 UTC
fixed in master at 2d097182f975b3d050765e52f3e3788be77f6065.

Comment 2 RHEL Program Management 2012-08-29 21:07:29 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 John Sefler 2012-09-07 21:10:03 UTC
Verifying Version...
[root@rhsm-accept-rhel5 ~]# rpm -q subscription-manager-migration
subscription-manager-migration-1.0.17-1.el5



[root@rhsm-accept-rhel5 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=**** --force --norhnsd --nohardware --nopackages --novirtinfo

[root@rhsm-accept-rhel5 ~]# rhn-migrate-classic-to-rhsm --servicelevel="nOnE"
Red Hat account: qa
Password: 

Retrieving existing RHN Classic subscription information ...
+----------------------------------+
System is currently subscribed to these RHN Classic Channels:
+----------------------------------+
rhel-x86_64-server-5

+--------------------------------------------------+ 
Installing product certificates for these RHN Classic channels:
+--------------------------------------------------+
rhel-x86_64-server-5

Product certificates installed successfully to /etc/pki/product.

Preparing to unregister system from RHN Classic ...
System successfully unregistered from RHN Classic.

Attempting to register system to Red Hat Subscription Management ...
The system has been registered with id: 1c1f7d06-a1bb-430d-8c63-acae614afad4 
System 'rhsm-accept-rhel5.usersys.redhat.com' successfully registered to Red Hat Subscription Management.

Attempting to auto-subscribe to appropriate subscriptions ...
Service level set to: nOnE
Installed Product Current Status:
Product Name:         	Red Hat Enterprise Linux Server
Status:               	Subscribed


Please visit https://access.redhat.com/management/consumers/1c1f7d06-a1bb-430d-8c63-acae614afad4 to view the details, and to make changes if necessary.

[root@rhsm-accept-rhel5 ~]# subscription-manager service-level --list
+-------------------------------------------+
               Available Service Levels
+-------------------------------------------+
SELF-SUPPORT
PREMIUM
STANDARD
NONE

[root@rhsm-accept-rhel5 ~]# subscription-manager service-level --show
Current service level: nOnE

[root@rhsm-accept-rhel5 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+

Subscription Name:    	Red Hat Employee Subscription
Provides:             	Red Hat Enterprise Linux Server
                      	Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
                      	Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                      	Red Hat Beta
                      	Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                      	Red Hat Enterprise Linux High Availability (for RHEL Server)
                      	Red Hat Enterprise Linux Workstation
SKU:                  	SYS0395
Contract:             	2596950
Account:              	477931
Serial Number:        	1550672064496732006
Active:               	True
Quantity Used:        	1
Service Level:        	None
Service Type:         	None
Starts:               	10/05/2011
Ends:                 	01/01/2022

[root@rhsm-accept-rhel5 ~]# 


^^ VERIFIED: I specified that I wanted to migrate with --servicelevel="nOnE" and despite the case, I was successfully autosubscribed to a subscription that provided a service level of "None".

Comment 6 errata-xmlrpc 2013-01-08 03:57:30 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.

http://rhn.redhat.com/errata/RHBA-2013-0033.html


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