Bug 915843

Summary: subscription-manager-migration needs to depend on subscription-manager-migration-data or else it fails.
Product: Red Hat Enterprise Linux 6 Reporter: Peter Robinson <perobins>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: awood, bkearney
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-21 20:09:50 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: 862910, 920191    

Description Peter Robinson 2013-02-26 15:51:25 UTC
You can do a "yum install subscription-manager-migration" which will give you the rhn-migrate-classic-to-rhsm script to allow you to migrate RHN Classic to SAM/Subscriptions but it fails with the following error:

[root@some-host ~]# rhn-migrate-classic-to-rhsm 
Red Hat account: RHN-Account
Password: 

Retrieving existing RHN Classic subscription information ...

+-----------------------------------------------------+ 
System is currently subscribed to these RHN Classic Channels:
+-----------------------------------------------------+
rhel-x86_64-server-6
Unable to read mapping file: /usr/share/rhsm/product/RHEL-6/channel-cert-mapping.txt
[root@some-host ~]#

The subscription-manager-migration rpm package needs to depend on subscription-manager-migration-data so that the channel-cert-mapping.txt text file is there and the migration then succeeds.

Comment 2 RHEL Program Management 2013-03-02 06:48:18 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Alex Wood 2013-03-21 20:09:50 UTC
The dependency is weird, but was set up on purpose so that subscription-manager could be included in Fedora at some point in the future. The migration-data rpm is RH internal, and thus cannot be a dependency for subscription-manager-migration (which is built from the same source rpm as subscription-manager). We provide instructions for how a user can create their own migration data certs and mapping, in case they ever wanted to use it.

*** This bug has been marked as a duplicate of bug 811779 ***