Bug 772209

Summary: “Install-num-migrate-to-rhsm “ command not working as expected for I386 Box
Product: Red Hat Enterprise Linux 5 Reporter: spandey
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8CC: bkearney, cduryee, jmolet, jsefler, kbanerje, skallesh, spandey, syeghiay, wpoteat
Target Milestone: rc   
Target Release: 5.8   
Hardware: i386   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-0.98.11.el5 Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:44:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031, 782064    

Description spandey 2012-01-06 12:57:27 UTC
Description of problem:


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


How reproducible:
3/3

Prerequisites : 

I386 Rhel5.8 client with following rpm 

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

subscription-manager-migration-0.98.10-1.git.6.448dd59.el5

subscription-manager-gnome-0.98.10-1.git.6.448dd59.el5

subscription-manager-firstboot-0.98.10-1.git.6.448dd59.el5

subscription-manager-0.98.10-1.git.6.448dd59.el5


Steps to repro :

execute following command on console using valid installation number 
install-num-migrate-to-rhsm -i 20f91e3421ed551e

Expected Result : 
Required product cert should be copied to “/etc/pki/product” location.
And sucessfully message should display on console .

Actual Result : 
Cert is not getting copied in “/etc/pki/product”
and no message displayed on console  , 

Tested with I386 Rhel5.8 client and Server 


Note : Working fine for x86_64 machine 
[root@dhcp193-97 defectrpm]# install-num-migrate-to-rhsm -i 20f91e3421ed551e 

Copying /usr/share/rhsm/product/RHEL-5/Server-Server-x86_64-fbe6b460-a559-4b02-aa3a-3e580ea866b2-69.pem to /etc/pki/product/69.pem

[root@dhcp193-97 defectrpm]# 



Additional info:

Comment 1 Chris Duryee 2012-01-06 16:50:01 UTC
d6880cda6849a6deb4bf8ec59564735d746f764f master 0.99.3

Comment 4 spandey 2012-01-09 14:04:25 UTC
Verified using following rpm 

subscription-manager-firstboot-0.99.3-1.git.6.d6880cd.el5
subscription-manager-migration-0.99.3-1.git.6.d6880cd.el5
subscription-manager-migration-data-1.7-1.el5
subscription-manager-0.99.3-1.git.6.d6880cd.el5
subscription-manager-gnome-0.99.3-1.git.6.d6880cd.el5

[root@dhcp201-141 ~]# install-num-migrate-to-rhsm -d -i 20f91e3421ed551e 
Copying /usr/share/rhsm/product/RHEL-5/Server-Server-i386-8283bfc7-e1a1-46b0-8f3a-00ae03ee4822-69.pem to /etc/pki/product/69.pem


marking verified using above subscription-manager rpm

Comment 5 Chris Duryee 2012-01-09 14:41:20 UTC
6bce149 RHEL5.8 0.98.11+

Comment 7 John Sefler 2012-01-11 23:11:37 UTC
Verifying Version...
[root@hp-dl585-02 ~]# rpm -qa | grep subscription-manager
subscription-manager-migration-data-1.10-1.el5
subscription-manager-0.98.11-1.el5
subscription-manager-gnome-0.98.11-1.el5
subscription-manager-migration-0.98.11-1.el5
subscription-manager-firstboot-0.98.11-1.el5

[root@hp-dl585-02 ~]# uname -a
Linux hp-dl585-02.rhts.eng.bos.redhat.com 2.6.18-303.el5PAE #1 SMP Tue Jan 3 16:49:58 EST 2012 i686 athlon i386 GNU/Linux
[root@hp-dl585-02 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.8 Beta (Tikanga)

[root@hp-dl585-02 ~]# cat /etc/sysconfig/rhn/install-num 
49af89414d147589

[root@hp-dl585-02 ~]# subscription-manager list --installed
No installed Products to list

[root@hp-dl585-02 ~]# install-num-migrate-to-rhsm
Copying /usr/share/rhsm/product/RHEL-5/Server-Server-i386-8283bfc7-e1a1-46b0-8f3a-00ae03ee4822-69.pem to /etc/pki/product/69.pem
Copying /usr/share/rhsm/product/RHEL-5/Server-ClusterStorage-i386-a3429260-14b7-4256-8bc2-9a099bc303f8-90.pem to /etc/pki/product/90.pem
Copying /usr/share/rhsm/product/RHEL-5/Server-Cluster-i386-b79bfdf1-a36b-4483-abe8-da53e9903196-83.pem to /etc/pki/product/83.pem

[root@hp-dl585-02 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
ProductName:          	Red Hat Enterprise Linux Server
Version:              	5.7                      
Arch:                 	i386                     
Status:               	Not Subscribed           
Starts:               	None                     
Expires:              	None            

ProductName:          	Red Hat Enterprise Linux High Availability (for RHEL Server)
Version:              	5.7                      
Arch:                 	i386                     
Status:               	Not Subscribed           
Starts:               	None                     
Expires:              	None                                    

ProductName:          	Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
Version:              	5.7                      
Arch:                 	i386                     
Status:               	Not Subscribed           
Starts:               	None                     
Expires:              	None                     


[root@hp-dl585-02 ~]# subscription-manager facts --list | grep migr
migration.migrated_from: install_number
[root@hp-dl585-02 ~]#

Comment 8 spandey 2012-01-12 08:27:08 UTC
[root@dhcp201-141 ~]# rpm -qa | grep subscription
subscription-manager-firstboot-0.98.11-1.el5
subscription-manager-migration-0.98.11-1.el5
subscription-manager-migration-data-1.10-1.el5
subscription-manager-debuginfo-0.98.11-1.el5
subscription-manager-gnome-0.98.11-1.el5
subscription-manager-0.98.11-1.el5
[root@dhcp201-141 ~]# install-num-migrate-to-rhsm -i 20f91e3421ed551e 
Copying /usr/share/rhsm/product/RHEL-5/Server-Server-i386-8283bfc7-e1a1-46b0-8f3a-00ae03ee4822-69.pem to /etc/pki/product/69.pem
[root@dhcp201-141 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
ProductName:          	Red Hat Enterprise Linux Server
Version:              	5.7                      
Arch:                 	i386                     
Status:               	Not Subscribed           
Starts:               	None                     
Expires:              	None                     

[root@dhcp201-141 ~]# rm -rf /etc/pki/product/69.pem 

[root@dhcp201-141 ~]# install-num-migrate-to-rhsm --d
Copying /usr/share/rhsm/product/RHEL-5/Server-Server-i386-8283bfc7-e1a1-46b0-8f3a-00ae03ee4822-69.pem to /etc/pki/product/69.pem
Copying /usr/share/rhsm/product/RHEL-5/Server-ClusterStorage-i386-a3429260-14b7-4256-8bc2-9a099bc303f8-90.pem to /etc/pki/product/90.pem
Copying /usr/share/rhsm/product/RHEL-5/Server-Cluster-i386-b79bfdf1-a36b-4483-abe8-da53e9903196-83.pem to /etc/pki/product/83.pem
[root@dhcp201-141 ~]# subscription-manager list --installed
No installed Products to list
[root@dhcp201-141 ~]# install-num-migrate-to-rhsm --d --i  20f91e3421ed551e 
Copying /usr/share/rhsm/product/RHEL-5/Server-Server-i386-8283bfc7-e1a1-46b0-8f3a-00ae03ee4822-69.pem to /etc/pki/product/69.pem
[root@dhcp201-141 ~]# subscription-manager list --installed
No installed Products to list
[root@dhcp201-141 ~]#

Comment 9 spandey 2012-01-12 08:28:44 UTC
[root@dhcp201-141 ~]# subscription-manager facts --list | grep migr
migration.migrated_from: install_number


As per comment 7 and 8 working fine
Marking defect verified

Comment 10 William Poteat 2012-01-23 16:37:52 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 11 errata-xmlrpc 2012-02-21 06:44:17 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