Bug 1866558

Summary: ipa-healthcheck --input-file returns 1 on exit
Product: Red Hat Enterprise Linux 8 Reporter: Rob Crittenden <rcritten>
Component: ipa-healthcheckAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.2CC: fcami, ksiddiqu, ndehadra, pvoborni, ssidhaye, sumenon
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-healthcheck-0.7-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:48:21 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 Rob Crittenden 2020-08-05 21:38:09 UTC
Description of problem:

ipa-healthcheck can re-parse a healthcheck output file via:

# ipa-healthcheck -input-file /path/to/file

This should return 0 if no failures are detected but even in the case of no failures it returns 1 because it is comparing the string value of the severity to the numeric version which doesn't match so it incorrectly considers it a failure.


Version-Release number of selected component (if applicable):

ipa-healthcheck-0.4-4.module+el8.2.0+5489+95477d9f.noarch

How reproducible:

always

Steps to Reproduce:
1. # ipa-healthcheck --output-file /tmp/healthcheck.out
2. # ipa-healtcheck --input-file /tmp/healthcheck.out
3. echo $?

Actual results:
1

Expected results:
0

Comment 10 Rob Crittenden 2020-12-04 15:09:14 UTC
Fixed upstream
master: 5efeafa16a893cb6277ece4d573184bb64ee2744

Comment 17 errata-xmlrpc 2021-05-18 15:48:21 UTC
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 (Moderate: idm:DL1 and idm:client security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1846