Bug 1506958 - [RFE] Corrupted files should be listed all at once in rhsm.log
Summary: [RFE] Corrupted files should be listed all at once in rhsm.log
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.5
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-27 09:33 UTC by Rehana
Modified: 2021-01-12 16:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-12 16:15:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Rehana 2017-10-27 09:33:38 UTC
Description of problem:

As fixed in the original bug 1414529 , the rhsm.log now displays the corrupted product id file in the rhsm.log Ex: Error loading certificate: /etc/pki/product/37060.pem . However if the system had multiple corrupted files  user needs to fix the product cert one by one as the rhsm.log doesn't list all the corrupted files in one shot.


Version-Release number of selected component (if applicable):
subscription-manager: 1.20.2-1.el7
python-rhsm: 1.20.2-1.el7


How reproducible:
always

Steps to Reproduce:
1.Modify few product certs with junk values 

[root@hp-sl4545g7-01 ~]# rct cc /etc/pki/product/37060.pem 
Unable to read certificate file '/etc/pki/product/37060.pem': Error loading certificate: /etc/pki/product/37060.pem
[root@hp-sl4545g7-01 ~]# rct cc /etc/pki/product-default/69.pem 
Unable to read certificate file '/etc/pki/product-default/69.pem': Error loading certificate: /etc/pki/product-default/69.pem

2.execute `subscription-manager list --installed`
[root@hp-sl4545g7-01 ~]# subscription-manager list --installed
System certificates corrupted. Please reregister.

Actual results:
Observed that rhsm.log only mentioned one corrupted product id file 
 

Expected results:
User needs to fix the product id one by one as the corrupted product id files are not listed at once. It will be good to list all the corrupted product id files in the rhsm.log 

Additional info:

rhsm.log 

2017-10-27 05:14:24,283 [INFO] subscription-manager:10824:MainThread @managercli.py:453 - X-Correlation-ID: 5c39132dbb0a4545ac35da522d73a27f
2017-10-27 05:14:24,283 [INFO] subscription-manager:10824:MainThread @managercli.py:342 - Client Versions: {'python-rhsm': '1.20.2-1.el7', 'subscription-manager': '1.20.2-1.el7'}
2017-10-27 05:14:24,285 [INFO] subscription-manager:10824:MainThread @connection.py:832 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2017-10-27 05:14:24,286 [INFO] subscription-manager:10824:MainThread @connection.py:832 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=none
2017-10-27 05:14:24,305 [ERROR] subscription-manager:10824:MainThread @managercli.py:506 - Error loading certificate: /etc/pki/product/37060.pem

Comment 3 Rehana 2021-01-12 16:15:06 UTC
Stale Bug Clean up : 

Thank you for opening the bug . The scenario is described above is not a common scenario to experience for the customer.  With our current priority of the backlog we will not be able to work on this request. 

Hence closing this bug as part of stale bug policy review and clean up . 

thanks ,
Rehana


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