Bug 712130
| Summary: | subscription manager cli uses product name comparisons in the list command | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | RHEL Program Management <pm-rhel> | ||||
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> | ||||
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 6.1 | CC: | alikins, andriusb, bkearney, dgregor, jstodola, jwest, mkhusid, pm-eus, spurrier, xdmoon | ||||
| Target Milestone: | rc | Keywords: | ZStream | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-06-27 06:54:53 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 709412 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
RHEL Program Management
2011-06-09 14:49:48 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)
*** Bug 701612 has been marked as a duplicate of this bug. *** 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.
Created attachment 505882 [details]
subscription-manager-gui shows that the workstation product is installed and subscribed to with a valid certificate.
moving to VERIFIED 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 |