Bug 1135621
| Summary: | subscription-manager-gui should not display a /etc/pki/product-"default" installed product cert when the same id is already in /etc/pki/product | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.6 | CC: | bkearney, jesusr |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
subscription-manager GUI was showing both the default product certs and the installed product certs.
Consequence:
Duplicate certs were displayed.
Fix:
Prefer the installed one over the default product certs.
Result:
Only one cert is displayed in the GUI.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 07:48:35 UTC | Type: | Bug |
| 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: | |||
| Bug Blocks: | 1014343 | ||
| Attachments: | |||
|
Description
John Sefler
2014-08-29 19:45:03 UTC
Created attachment 932801 [details]
subscription-manager-gui should not render an /etc/pki/product-default cert that is overridden
Note that the severity of this bug will not be noticed by a customer until Release Engineering delivers RFE bug 1080007 or RFE bug 1080012 commit 88deef9cd3fb69b986f8fa3a3c9d3210ac9e0465
Author: ckozak <ckozak>
Date: Fri Sep 12 10:20:48 2014 -0400
1135621: fix duplicate product ids from default dir
Created attachment 937703 [details]
Only one product 69 is renderred in the GUI's list of installed products
Testing Version...
[root@jsefler-6 ~]# rpm -q subscription-manager-gui
subscription-manager-gui-1.12.14-6.el6.x86_64
[root@jsefler-6 ~]# rct cat-cert /etc/pki/product-default/69.pem | grep Version: | tail -1
Version: 6.6
[root@jsefler-6 ~]# rct cat-cert /etc/pki/product/69.pem | grep Version: | tail -1
Version: 6.6 Beta
[root@jsefler-6 ~]#
[root@jsefler-6 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.6 Beta
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 12/31/2013
Ends: 12/30/2014
[root@jsefler-6 ~]#
[root@jsefler-6 ~]# subscription-manager-gui
VERIFIED: Notice in the attached screenshot that only the "6.6 Beta" product cert from /etc/pki/product/69.pem is rendered as well as listed in the CLI subscription-manager list --installed. This is the expected behavior. The product cert located in /etc/pki/product will mask a product cert with the same id installed in /etc/pki/product-default.
Created attachment 937706 [details]
GUI's list of installed products renders the /etc/pki/product-default when the same id is not installed in /etc/pki/product
And.... after deleting /etc/pki/product/69.pem, the one in the product-default directory is now listed in both the CLI and GUI as the sole installed product 69...
[root@jsefler-6 ~]# rm /etc/pki/product/69.pem
rm: remove regular file `/etc/pki/product/69.pem'? y
[root@jsefler-6 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.6
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 12/31/2013
Ends: 12/30/2014
[root@jsefler-6 ~]# rct cat-cert /etc/pki/product-default/69.pem | grep Version | tail -1
Version: 6.6
[root@jsefler-6 ~]#
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-2014-1384.html |