Bug 1780062
Summary: | [RFE] When IPA system is healthy, ipa-healthcheck --failures-only should display proper message instead of empty list | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Sudhir Menon <sumenon> |
Component: | ipa-healthcheck | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | 8.1 | CC: | antorres, fcami, frenaud, mpolovka, ndehadra, pcech, rcritten, ssidhaye, tscherf, twoerner |
Target Milestone: | rc | Keywords: | FutureFeature, TestCaseProvided, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-healthcheck-0.7-5.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 18:21:19 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
Sudhir Menon
2019-12-05 10:34:59 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. 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. Merged upstream https://github.com/freeipa/freeipa-healthcheck/commit/69ecaf499c0f300ee18188ff881d9c7476d74493 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. 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 |