RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1780062 - [RFE] When IPA system is healthy, ipa-healthcheck --failures-only should display proper message instead of empty list
Summary: [RFE] When IPA system is healthy, ipa-healthcheck --failures-only should disp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa-healthcheck
Version: 8.1
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: rc
: 8.0
Assignee: Rob Crittenden
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-05 10:34 UTC by Sudhir Menon
Modified: 2021-11-09 23:01 UTC (History)
10 users (show)

Fixed In Version: ipa-healthcheck-0.7-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 18:21:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7165 0 None None None 2021-10-25 18:12:02 UTC
Red Hat Issue Tracker RHELPLAN-32145 0 None None None 2021-10-25 18:12:01 UTC
Red Hat Product Errata RHBA-2021:4230 0 None None None 2021-11-09 18:21:38 UTC

Description Sudhir Menon 2019-12-05 10:34:59 UTC
Description of problem: When IPA system is healthy, ipa-healthcheck --failures-only should display proper message instead of empty list
 
Version-Release number of selected component (if applicable):
ipa-server-4.8.0-11.module+el8.1.0+4247+9f3fd721.x86_64


How reproducible: Always


Steps to Reproduce:
1. Lets assume ipa system is healthy.
2. Now run ipa-healthcheck-tool --failures-only
3. Check the output

Actual results:
The output displays an empty list i.e []

Expected results:
Instead of displaying an empty list i.e [], which doesn't make sense when a report is revisited, instead it should display user-friendly message e.g 'IPA system is/was in healthy state : <timestamp>'.
This makes sense for the customer viewing the report.

Additional info:

Comment 1 aman dwivedi 2019-12-05 12:44:19 UTC
I run the command, when there are no failures 'ipa-healthcheck --failures-only  --output-type=human --output-file abc' it creates an empty file only. I observe it also with different values severity(like WARNING, ERROR, CRITICAL) when all the checks are sucessful. It's better to have a proper message with a timestamp instead of an empty file.

Comment 2 Rob Crittenden 2019-12-05 12:59:02 UTC
For the JSON (default) case this is expected behavior and will not change.

For human I suppose we could spit out a message like "No issues found". I don't see the need for a date.

Comment 8 Rob Crittenden 2021-05-14 17:55:38 UTC
The IPA test TestIpaHealthCLI::test_severity is going to need to be adjusted to deal with the text response instead of an empty list. Checking that it returns non-zero should be sufficient IMHO.

Comment 12 Michal Polovka 2021-07-02 10:26:43 UTC
Verified manually (automation in review) using ipa-healthcheck-0.7-6.module+el8.5.0+11410+91a33fe4.noarch on RHEL8.5 system


# ipa-healthcheck --failures-only --output-type human
No issues found.

Comment 13 Florence Blanc-Renaud 2021-07-13 07:32:38 UTC
Test case added upstream in ipatests/test_integration/test_ipahealthcheck.py::TestIpaHealthCheck::test_human_output
master:
    b43ac4f ipatests: test_ipahealthcheck: print a message if a system is healthy
ipa-4-9:
    7f910eb ipatests: test_ipahealthcheck: print a message if a system is healthy

Comment 15 errata-xmlrpc 2021-11-09 18:21:19 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 (ipa 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/RHBA-2021:4230


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