Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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:
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.
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.
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.
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 13Florence 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
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