Bug 1506958

Summary: [RFE] Corrupted files should be listed all at once in rhsm.log
Product: Red Hat Enterprise Linux 7 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: low    
Version: 7.5CC: csnyder, wpoteat
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-12 16:15:06 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:

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