Bug 790437 - install-num-migrate-to-rhsm should NOT copy both Desktop (68.pem) and Workstation (71.pem) product certs
Summary: install-num-migrate-to-rhsm should NOT copy both Desktop (68.pem) and Worksta...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On: 790217 795784
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 14:41 UTC by RHEL Program Management
Modified: 2012-08-10 13:07 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2012-02-21 05:02:18 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0148 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-21 10:01:24 UTC

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.


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