Bug 790437

Summary: install-num-migrate-to-rhsm should NOT copy both Desktop (68.pem) and Workstation (71.pem) product certs
Product: Red Hat Enterprise Linux 5 Reporter: RHEL Program Management <pm-rhel>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.8CC: awood, jsefler, mkhusid, msvoboda, pm-eus
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the "install-num-migrate-to-rhsm" utility did not work correctly for certain products. Consequently, the utility installed also a superfluous Desktop product certificate when the system was provided with an installation number for a Workstation product and vice versa. With this update, "install-num-migrate-to-rhsm" has been fixed and only the correct product certificate is now installed under these circumstances.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:02:18 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: 790217, 795784    
Bug Blocks:    

Description RHEL Program Management 2012-02-14 14:41:36 UTC
This bug has been copied from bug #790217 and has been proposed
to be backported to 5.8 z-stream (EUS).

Comment 4 Alex Wood 2012-02-14 14:52:00 UTC
Committed f45a14868053c2c6de1dff4d518f8f600d996258

Available in subscription-manager-0.98.15+

Comment 5 John Sefler 2012-02-14 18:43:27 UTC
(In reply to comment #4)
> Committed f45a14868053c2c6de1dff4d518f8f600d996258
> 
> Available in subscription-manager-0.98.15+
  Available in subscription-manager-0.98.16+
                                          ^typo correction

Comment 6 John Sefler 2012-02-14 19:02:08 UTC
Test procedure taken from https://bugzilla.redhat.com/show_bug.cgi?id=790217#c7

Verifying Version...
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager-migration
subscription-manager-migration-0.98.16-1.el5_8


Case1: Desktop only instnumber 000000870003fc01... 
[root@jsefler-onprem-5server ~]# python /usr/lib/python2.4/site-packages/instnum.py 000000870003fc01 | egrep "^{.*}$"
{'Base': 'Client'}
[root@jsefler-onprem-5server ~]# install-num-migrate-to-rhsm -d -i 000000870003fc01
Copying /usr/share/rhsm/product/RHEL-5/Client-Client-x86_64-6587edcf1c03-68.pem to /etc/pki/product/68.pem
[root@jsefler-onprem-5server ~]# 

^^^ Verified that only the Desktop product cert (68.pem) will be installed


Case2: Workstation instnumber 000000a4004ffc01...
[root@jsefler-onprem-5server ~]# python /usr/lib/python2.4/site-packages/instnum.py 000000a4004ffc01 | egrep "^{.*}$"
{'Workstation': 'Workstation', 'Base': 'Client'}
[root@jsefler-onprem-5server ~]# install-num-migrate-to-rhsm -d -i 000000a4004ffc01
Copying /usr/share/rhsm/product/RHEL-5/Client-Workstation-x86_64-f812997e0eda-71.pem to /etc/pki/product/71.pem
[root@jsefler-onprem-5server ~]# 

^^^ Verified that only the Workstation product cert (71.pem) will be installed

Comment 7 errata-xmlrpc 2012-02-21 05:02:18 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-0148.html

Comment 8 Miroslav Svoboda 2012-02-21 13:22:24 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:
Previously, the "install-num-migrate-to-rhsm" utility did not work correctly for certain products. Consequently, the utility installed also a superfluous Desktop product certificate when the system was provided with an installation number for a Workstation product and vice versa. With this update, "install-num-migrate-to-rhsm" has been fixed and only the correct product certificate is now installed under these circumstances.