Bug 2079698
| Summary: | Output raised AttributeError: 'str' object has no attribute 'render' when output_type="" is specified in ipahealthcheck.conf file. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | 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: | medium | ||
| Version: | 9.1 | CC: | fcami, mpolovka, ssidhaye |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-healthcheck-0.9-8.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-15 10:22:33 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
2022-04-28 06:19:45 UTC
Pre-verified manually using RHEL9.1 machine with ipa-healthcheck-0.9-7.el9.noarch # cat /etc/ipahealthcheck/ipahealthcheck.conf [default] output_type="" # ipa-healthcheck --all Unhandler rdtype 256 Unhandler rdtype 256 Unhandler rdtype 256 Unhandler rdtype 256 Output raised AttributeError: 'str' object has no attribute 'render' The original issue is still present, therefore marking as failed pre-verification. Automation in progress. It actually affects anything not know, so output_type=foo fails as well. Looking into it. I did not backport the complete fix. Missing upstream commit eb6cb8ec7abad0d627ad82fb2761fa313849f2fc Moving back to Modified, as it needs pre-verification. Pre-verified using automation from tests/test_options.py::test_incorrect_output_type_cfg_file with the package ipa-healthcheck-0.9-8.el9.noarch # python3 -m pytest -vvv tests/test_options.py ==================================================================================== test session starts ===================================================================================== platform linux -- Python 3.9.10, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /root/freeipa-healthcheck collected 3 items tests/test_options.py::test_options_merge PASSED [ 33%] tests/test_options.py::test_cfg_file_debug_option PASSED [ 66%] tests/test_options.py::test_incorrect_output_type_cfg_file PASSED [100%] ===================================================================================== 3 passed in 1.85s ====================================================================================== Therefore marking as pre-verified: tested. Verified using the automation from with the package ipa-healthcheck-0.9-8.el9.noarch tests/test_options.py::test_incorrect_output_type_cfg_file on RHEL9.1 machine # python3 -m pytest -vvv tests/test_options.py ==================================================================================== test session starts ===================================================================================== platform linux -- Python 3.9.10, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /root/freeipa-healthcheck collected 3 items tests/test_options.py::test_options_merge PASSED [ 33%] tests/test_options.py::test_cfg_file_debug_option PASSED [ 66%] tests/test_options.py::test_incorrect_output_type_cfg_file PASSED [100%] ===================================================================================== 3 passed in 2.54s ====================================================================================== Therefore marking as verified. 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-healthcheck 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-2022:8113 |