Bug 758162 - migration script does not allow --force override when channels are missing from mapping file
Summary: migration script does not allow --force override when channels are missing fr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 5.8
Assignee: Chris Duryee
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 715031 771700 772019
TreeView+ depends on / blocked
 
Reported: 2011-11-29 12:53 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2012-02-21 06:43:26 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Description spandey 2011-11-29 12:53:29 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
3/3

Prerequisites : 
Rhel 5.8 client with following subscription
subscription-manager-migration-0.98.3-1.git.16.14460bc.el5_7

subscription-manager-gnome-0.98.3-1.git.16.14460bc.el5_7

subscription-manager-firstboot-0.98.3-1.git.16.14460bc.el5_7

subscription-manager-0.98.3-1.git.16.14460bc.el5_7

subscription-manager-migration-data-1.4-1.el5


Steps to verify : 
Register client to "rhn.code.stage" using stage_test_15
Subscribe “Release” and “Beta” channel using web ui.
Start migration from rhn.code.stage to stage env with –force option.

Expected Result : 
Message should display for non available subscription , and migration process should completed for available subscription .
No error message should display on console .
 
Actual Result :
Migration process is not getting completed for available subscription.
No error displays on console .

[root@dhcp201-137 ~]# rhn-migrate-classic-to-rhsm --force

RHN Username: stage_test_15

Password: 



Retrieving existing RHN classic subscription information ...

+----------------------------------+

System is currently subscribed to:

+----------------------------------+

rhel-x86_64-server-5

rhel-x86_64-server-productivity-5-beta

rhn-tools-rhel-x86_64-server-5

rhel-x86_64-server-fastrack-5

rhel-x86_64-server-supplementary-5

rhel-x86_64-server-5-beta

rhel-x86_64-server-vt-5

rhn-tools-rhel-x86_64-server-5-beta

rhel-x86_64-server-supplementary-5-beta

rhel-x86_64-server-vt-5-beta

rhel-x86_64-rhev-agent-5-server-beta

rhel-x86_64-server-productivity-5



Unrecognized Channel. Mapping not found !!!



+--------------------------------------------------+

Below mentioned channels are NOT available on RHSM

+--------------------------------------------------+

rhel-x86_64-server-productivity-5-beta

rhel-x86_64-server-5-beta

rhn-tools-rhel-x86_64-server-5-beta

rhel-x86_64-server-supplementary-5-beta

rhel-x86_64-server-vt-5-beta



List of channels for which certs are being copied

rhel-x86_64-server-5

rhn-tools-rhel-x86_64-server-5

rhel-x86_64-server-fastrack-5

rhel-x86_64-server-supplementary-5

rhel-x86_64-server-vt-5

rhel-x86_64-server-productivity-5



Unrecognized channels. Channel to Product Certificate mapping missing for these channels.

rhel-x86_64-rhev-agent-5-server-beta

Comment 8 Chris Duryee 2011-12-13 14:03:43 UTC
4ae251f 0.98.9+

Comment 10 spandey 2011-12-21 08:50:05 UTC
Verified using following rpm 

subscription-manager-migration-data-1.7-1.el5
subscription-manager-firstboot-0.99.2-1.git.7.d4c703a.el5_7
subscription-manager-migration-0.99.2-1.git.7.d4c703a.el5_7
subscription-manager-0.99.2-1.git.7.d4c703a.el5_7
subscription-manager-gnome-0.99.2-1.git.7.d4c703a.el5_7



[root@dhcp193-29 ~]# rhn-migrate-classic-to-rhsm --force
RHN Username: stage_test_15
Password: 

Retrieving existing RHN classic subscription information ...
+----------------------------------+
System is currently subscribed to:
+----------------------------------+
rhel-x86_64-server-5
rhel-x86_64-server-productivity-5-beta
rhn-tools-rhel-x86_64-server-5
rhel-x86_64-server-fastrack-5
rhel-x86_64-server-supplementary-5
rhel-x86_64-server-5-beta
rhel-x86_64-server-vt-5
rhn-tools-rhel-x86_64-server-5-beta
rhel-x86_64-server-supplementary-5-beta
rhel-x86_64-server-vt-5-beta
rhel-x86_64-rhev-agent-5-server-beta
rhel-x86_64-server-productivity-5

+--------------------------------------------------+
Below mentioned channels are NOT available on RHSM
+--------------------------------------------------+
rhel-x86_64-server-productivity-5-beta
rhel-x86_64-server-5-beta
rhn-tools-rhel-x86_64-server-5-beta
rhel-x86_64-server-supplementary-5-beta
rhel-x86_64-server-vt-5-beta

+---------------------------------------------------------------------------------------+ 
Unrecognized channels. Channel to Product Certificate mapping missing for these channels.
+---------------------------------------------------------------------------------------+
rhel-x86_64-rhev-agent-5-server-beta

List of channels for which certs are being copied
rhel-x86_64-server-5
rhn-tools-rhel-x86_64-server-5
rhel-x86_64-server-fastrack-5
rhel-x86_64-server-supplementary-5
rhel-x86_64-server-vt-5
rhel-x86_64-server-productivity-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 Certificate-based RHN ...
The system has been registered with id: 02effdc6-3d2a-4b3f-973e-ea5656d2a6e6 
System 'dhcp193-29.pnq.redhat.com' successfully registered to Certificate-based RHN.

Attempting to auto-subscribe to appropriate subscriptions ...
Installed Product Current Status:
ProductName:          	Red Hat Enterprise Linux Server
Status:               	Not Subscribed           

Successfully subscribed.

Please visit https://access.redhat.com/management/consumers/02effdc6-3d2a-4b3f-973e-ea5656d2a6e6 to view the details, and to make changes if necessary.
[root@dhcp193-29 ~]# 


Moving defect status from modified to verified

Comment 11 William Poteat 2012-01-23 15:29:10 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 12 errata-xmlrpc 2012-02-21 06:43:26 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-2012-0154.html


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