Bug 712130 - subscription manager cli uses product name comparisons in the list command
Summary: subscription manager cli uses product name comparisons in the list command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
: 701612 (view as bug list)
Depends On: 709412
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-09 14:49 UTC by RHEL Program Management
Modified: 2011-06-27 06:54 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-27 06:54:53 UTC
Target Upstream Version:


Attachments (Terms of Use)
subscription-manager-gui shows that the workstation product is installed and subscribed to with a valid certificate. (40.57 KB, image/png)
2011-06-21 19:27 UTC, John Sefler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0902 0 normal SHIPPED_LIVE subscription-manager bug fix update 2011-06-27 06:54:46 UTC

Description RHEL Program Management 2011-06-09 14:49:48 UTC
This bug has been copied from bug #709412 and has been proposed
to be backported to 6.1 z-stream (EUS).

Comment 3 Adrian Likins 2011-06-09 18:47:17 UTC
commit 4c85e3d5e7deacaeef242adb019300cd112fd7aa
Author: Adrian Likins <alikins>
Date:   Tue Jun 7 15:23:30 2011 -0400

    712130: cli was using product names for ent cert-> product cert matching
    
    In some cases, this was wrong, so update it to use product ids.
    
    (merge)

Comment 4 Bryan Kearney 2011-06-14 13:13:09 UTC
*** Bug 701612 has been marked as a duplicate of this bug. ***

Comment 6 John Sefler 2011-06-21 19:25:58 UTC
Verifying Version....

[root@jsefler-stage-6workstation ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.95.17-1.el6_1.x86_64
subscription-manager-gnome-0.95.17-1.el6_1.x86_64
subscription-manager-0.95.17-1.el6_1.x86_64
[root@jsefler-stage-6workstation ~]# rpm -q python-rhsm
python-rhsm-0.95.14-1.el6_1.noarch


[root@jsefler-stage-6workstation ~]# subscription-manager register --username=qa
Password: 
e08e4c66-7977-49df-a45a-8f51e34dbf1d jsefler-stage-6workstation.usersys.redhat.com
[root@jsefler-stage-6workstation ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+

ProductName:        	Red Hat Enterprise Linux 6 Workstation
Status:             	Not Subscribed           
Expires:            	                         
Subscription:       	                         
ContractNumber:     	                         
AccountNumber:      	                         

[root@jsefler-stage-6workstation ~]# subscription-manager list --avail | grep -A6 Workstation
ProductName:       	90 day Supported Red Hat Enterprise Linux Workstation
                        Evaluation
ProductId:         	RH0939261                
PoolId:            	8a85f981302cbaf201304b4df59206fe
Quantity:          	98                       
Expires:           	08/29/2011               

[root@jsefler-stage-6workstation ~]# subscription-manager subscribe --pool=8a85f981302cbaf201304b4df59206fe

[root@jsefler-stage-6workstation ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+

ProductName:        	Red Hat Enterprise Linux Workstation
Status:             	Subscribed               
Expires:            	08/29/2011               
Subscription:       	1907808447336918412      
ContractNumber:     	2390960                  
AccountNumber:      	477931                   

[root@jsefler-stage-6workstation ~]# openssl x509 -text -in /etc/pki/product/71.pem | grep -A1 1.3.6.1.4.1.2312.9.1
            1.3.6.1.4.1.2312.9.1.71.1: 
                .&Red Hat Enterprise Linux 6 Workstation
            1.3.6.1.4.1.2312.9.1.71.2: 
                ..6.1
            1.3.6.1.4.1.2312.9.1.71.3: 
                ..x86_64
            1.3.6.1.4.1.2312.9.1.71.4: 
                ..rhel-6,rhel-6-workstation
[root@jsefler-stage-6workstation ~]# openssl x509 -text -in /etc/pki/entitlement/1907808447336918412.pem | grep -A1 1.3.6.1.4.1.2312.9.1
            1.3.6.1.4.1.2312.9.1.71.1: 
                .$Red Hat Enterprise Linux Workstation
[root@jsefler-stage-6workstation ~]# 


^^^ VERIFIED.  Despite the difference in name between the product cert and the
entitlement cert ("Red Hat Enterprise Linux 6 Workstation" versus "Red Hat
Enterprise Linux Workstation"), the cli call to subscription-manager list
--installed now reports that the one workstation product (product-hash 71) is installed and
subscribed.

Also verified in the gui that the one workstation product is installed and subscribed.  See the attached screenshot.

Comment 7 John Sefler 2011-06-21 19:27:45 UTC
Created attachment 505882 [details]
subscription-manager-gui shows that the workstation product is installed and subscribed to with a valid certificate.

Comment 8 John Sefler 2011-06-21 19:30:35 UTC
moving to VERIFIED

Comment 9 errata-xmlrpc 2011-06-27 06:54:53 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0902.html


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