Bug 840169
Summary: | rhn-migrate-classic-to-rhsm appears to autosubscribe before considering the requested --servicelevel option | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Alex Wood <awood> |
Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9 | CC: | bkearney, fsharath, skallesh, spandey |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Attempting to migrate a system from RHN to Red Hat Subscription Management using the rhn-migrate-classic-to-rhsm tool.
Consequence: The system is registered but does not have its service level set correctly.
Fix: The service level is now set before registration,
Result: The service level is taken into account when a system registers.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-08 03:57:09 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: | |||
Bug Depends On: | |||
Bug Blocks: | 771748 |
Description
John Sefler
2012-07-14 02:59:42 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. Since subscription-manager already permits the user to specify a case-insensitive servicelevel value, rhn-migrate-classic-to-rhsm should also be able to resolve the servicelevel option regardless of case. commit 7b4ba0c80f9e87b89fc6520b187c734cbd80732a Refs: <origin/awood/840169>, awood/840169, subscription-manager-1.0.9-1-24-g7b~ Author: Alex Wood <awood> AuthorDate: Tue Jul 17 14:14:16 2012 -0400 Commit: Alex Wood <awood> CommitDate: Tue Jul 17 14:15:53 2012 -0400 Available in subscription-manager-1.0.10+ (In reply to comment #2) > Since subscription-manager already permits the user to specify a > case-insensitive servicelevel value, rhn-migrate-classic-to-rhsm should also > be able to resolve the servicelevel option regardless of case. Opened under seperate bug 841961 - rhsm-migrate-classic-to-rhsm --servicelevel should be case insensitive Verification blocked by Bug 845043 Verifying Version... [root@jsefler-rhel59 ~]# rpm -q subscription-manager-migration subscription-manager-migration-1.0.14-1.el5 [root@jsefler-rhel59 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=***** --profilename=rhsm-automation.jsefler-rhel59.usersys.redhat.com --force --norhnsd --nohardware --nopackages --novirtinfo [root@jsefler-rhel59 ~]# rhn-migrate-classic-to-rhsm -f --servicelevel=PrEMiuM Red Hat account: qa Password: Retrieving existing RHN Classic subscription information ... +----------------------------------+ System is currently subscribed to: +----------------------------------+ rhel-x86_64-server-5 List of channels for which certs are being copied rhel-x86_64-server-5 Product certificates copied 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: e1ce1e87-139b-4825-a902-9a5d4da4c37f System 'jsefler-rhel59.usersys.redhat.com' successfully registered to Red Hat Subscription Management. Service level "PrEMiuM" is not available. Please select a service level agreement for this system. 1. SELF-SUPPORT 2. PREMIUM 3. STANDARD 4. NONE 5. No service level preference ? 2 Attempting to auto-subscribe to appropriate subscriptions ... Service level set to: PREMIUM Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to auto-subscribe. Do your existing subscriptions match the products installed on this system? Please visit https://access.redhat.com/management/consumers/e1ce1e87-139b-4825-a902-9a5d4da4c37f to view the details, and to make changes if necessary. [root@jsefler-rhel59 ~]# [root@jsefler-rhel59 ~]# subscription-manager service-level --show Current service level: PREMIUM ^^^^ VERIFIED: In the workflow above you can see that the requested servicelevel is now acknowledged and processed prior to the attempted autosubscribe. The selected servicelevel is in fact saved as the new consumer's preference. *** Bug 834299 has been marked as a duplicate of this bug. *** 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 |