Hide Forgot
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 ~]#
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
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
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