Bug 771615 - Got Traceback with –force migration
Summary: Got Traceback with –force migration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager-migration-data
Version: 5.8
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Alex Wood
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 715031 782064
TreeView+ depends on / blocked
 
Reported: 2012-01-04 10:39 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 06:48:56 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0290 0 normal SHIPPED_LIVE new package: subscription-manager-migration-data 2012-02-20 15:05:40 UTC

Description spandey 2012-01-04 10:39:09 UTC
Description of problem:


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


How reproducible:
2/2

Prerequisites :

Rhel5.8  x86_64 and I386 machine with following rpm 

x86_64
subscription-manager-gnome-0.98.10-1.git.0.5d83904.el5

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

subscription-manager-migration-0.98.10-1.git.0.5d83904.el5

subscription-manager-debuginfo-0.98.9-1.el5

subscription-manager-0.98.10-1.git.0.5d83904.el5

subscription-manager-firstboot-0.98.10-1.git.0.5d83904.el5


I386
subscription-manager-firstboot-0.98.10-1.git.0.5d83904.el5

subscription-manager-0.98.10-1.git.0.5d83904.el5

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

subscription-manager-gnome-0.98.10-1.git.0.5d83904.el5

subscription-manager-migration-0.98.10-1.git.0.5d83904.el5


Steps to Repro :
Register client to rhn.redhat.com using qa login id 
subscribe all subscription from “Release Channels for Red Hat Enterprise Linux 5 for x86_64 “
same step for I386 machine 
start migration from rhn classic to rhsm using force option 

Expected Result : 
Client should unregistered from rhn classic and register to RHSM no error should display on console 

Actual Result : 

X86_64 console output 

[root@dhcp193-29 ~]# rhn-migrate-classic-to-rhsm 

RHN Username: qa

Password: 



Retrieving existing RHN classic subscription information ...

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

System is currently subscribed to:

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

rhel-x86_64-server-5

rhel-x86_64-server-productivity-5-debuginfo

rhel-x86_64-server-vt-5-debuginfo

rhel-x86_64-server-5-debuginfo

rhel-x86_64-rhev-agent-5-server

rhel-x86_64-server-sjis-5-debuginfo

rhel-x86_64-rhev-v2v-5

rhel-x86_64-server-scalefs-5

rhel-x86_64-rhev-mgmt-agent-5

rhel-x86_64-server-rhev-hdk-2-5

rhel-x86_64-server-sap-5

rhel-x86_64-server-sjis-5

rhn-tools-rhel-x86_64-server-5

rhel-x86_64-server-fastrack-5

rhel-x86_64-server-supplementary-5

rhel-x86_64-server-productivity-5

rhel-x86_64-server-vt-5

rhel-x86_64-server-fastrack-5-debuginfo

rhel-x86_64-server-supplementary-5-debuginfo



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

Below mentioned channels are NOT available on RHSM

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

rhel-x86_64-rhev-agent-5-server

rhel-x86_64-server-sjis-5-debuginfo

rhel-x86_64-rhev-v2v-5

rhel-x86_64-rhev-mgmt-agent-5

rhel-x86_64-server-rhev-hdk-2-5

rhel-x86_64-server-sjis-5



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

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

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

rhel-x86_64-server-productivity-5-debuginfo

rhel-x86_64-server-vt-5-debuginfo

rhel-x86_64-server-5-debuginfo

rhel-x86_64-server-fastrack-5-debuginfo

rhel-x86_64-server-supplementary-5-debuginfo



Use --force to ignore these channels and continue the migration.



[root@dhcp193-29 ~]# rhn-migrate-classic-to-rhsm --force

RHN Username: qa

Password: 



Retrieving existing RHN classic subscription information ...

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

System is currently subscribed to:

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

rhel-x86_64-server-5

rhel-x86_64-server-productivity-5-debuginfo

rhel-x86_64-server-vt-5-debuginfo

rhel-x86_64-server-5-debuginfo

rhel-x86_64-rhev-agent-5-server

rhel-x86_64-server-sjis-5-debuginfo

rhel-x86_64-rhev-v2v-5

rhel-x86_64-server-scalefs-5

rhel-x86_64-rhev-mgmt-agent-5

rhel-x86_64-server-rhev-hdk-2-5

rhel-x86_64-server-sap-5

rhel-x86_64-server-sjis-5

rhn-tools-rhel-x86_64-server-5

rhel-x86_64-server-fastrack-5

rhel-x86_64-server-supplementary-5

rhel-x86_64-server-productivity-5

rhel-x86_64-server-vt-5

rhel-x86_64-server-fastrack-5-debuginfo

rhel-x86_64-server-supplementary-5-debuginfo



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

Below mentioned channels are NOT available on RHSM

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

rhel-x86_64-rhev-agent-5-server

rhel-x86_64-server-sjis-5-debuginfo

rhel-x86_64-rhev-v2v-5

rhel-x86_64-rhev-mgmt-agent-5

rhel-x86_64-server-rhev-hdk-2-5

rhel-x86_64-server-sjis-5



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

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

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

rhel-x86_64-server-productivity-5-debuginfo

rhel-x86_64-server-vt-5-debuginfo

rhel-x86_64-server-5-debuginfo

rhel-x86_64-server-fastrack-5-debuginfo

rhel-x86_64-server-supplementary-5-debuginfo



List of channels for which certs are being copied

rhel-x86_64-server-5

rhel-x86_64-server-scalefs-5

rhel-x86_64-server-sap-5

rhn-tools-rhel-x86_64-server-5

rhel-x86_64-server-fastrack-5

rhel-x86_64-server-supplementary-5

rhel-x86_64-server-productivity-5

rhel-x86_64-server-vt-5

Traceback (most recent call last):

  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 400, in ?

    main()

  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 385, in main

    deployProdCertificates(subscribedChannels)

  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 313, in deployProdCertificates

    shutil.copy2(sourcepath, destinationpath)

  File "/usr/lib64/python2.4/shutil.py", line 92, in copy2

    copyfile(src, dst)

  File "/usr/lib64/python2.4/shutil.py", line 47, in copyfile

    fsrc = open(src, 'rb')

IOError: [Errno 2] No such file or directory: '/usr/share/rhsm/product/RHEL-5/Server-ScalableFileSystem-x86_64-d276c9fd6b78-92.pem'

[root@dhcp193-29 ~]# 


I386 machine output 

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

RHN Username: qa

Password: 



Retrieving existing RHN classic subscription information ...

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

System is currently subscribed to:

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

rhel-i386-client-5

rhel-i386-client-supplementary-5-debuginfo

rhel-i386-client-vt-5-debuginfo

rhel-i386-client-workstation-5-debuginfo

rhel-i386-client-5-debuginfo

rhel-i386-rhev-agent-5-client

rhel-i386-client-multimedia-5

rhel-i386-client-workstation-fastrack-5

rhel-i386-client-fastrack-5

rhn-tools-rhel-i386-client-5

rhel-i386-client-supplementary-5

rhel-i386-client-vt-5

rhel-i386-client-workstation-5

rhel-i386-client-workstation-fastrack-5-debuginfo

rhel-i386-client-fastrack-5-debuginfo



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

Below mentioned channels are NOT available on RHSM

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

rhel-i386-rhev-agent-5-client

rhel-i386-client-multimedia-5



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

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

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

rhel-i386-client-supplementary-5-debuginfo

rhel-i386-client-vt-5-debuginfo

rhel-i386-client-workstation-5-debuginfo

rhel-i386-client-5-debuginfo

rhel-i386-client-workstation-fastrack-5-debuginfo

rhel-i386-client-fastrack-5-debuginfo



List of channels for which certs are being copied

rhel-i386-client-5

rhel-i386-client-workstation-fastrack-5

rhel-i386-client-fastrack-5

rhn-tools-rhel-i386-client-5

rhel-i386-client-supplementary-5

rhel-i386-client-vt-5

rhel-i386-client-workstation-5

Traceback (most recent call last):

  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 400, in ?

    main()

  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 385, in main

    deployProdCertificates(subscribedChannels)

  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 313, in deployProdCertificates

    shutil.copy2(sourcepath, destinationpath)

  File "/usr/lib/python2.4/shutil.py", line 92, in copy2

    copyfile(src, dst)

  File "/usr/lib/python2.4/shutil.py", line 47, in copyfile

    fsrc = open(src, 'rb')

IOError: [Errno 2] No such file or directory: '/usr/share/rhsm/product/RHEL-5/none '

[root@dhcp201-177 ~]#

Comment 2 James Bowes 2012-01-05 19:27:31 UTC
I've fixed this by adding a linting step to the -data srpm, to check for any bad entries in the mapping file, or missing pem files. should be fixed in subscription-manager-migration-data 1.8

Comment 4 spandey 2012-01-10 12:44:59 UTC
Verified using following migration-data rpm 

subscription-manager-migration-data-1.10-1.el5.noarch.rpm

Working fine 

Resolving defect at verified  

Verified on X86_64 and I386 platform

Comment 5 errata-xmlrpc 2012-02-21 06:48:56 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/RHEA-2012-0290.html


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