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.

Bug 2079861

Summary: 'debug=True' in ipahealthcheck.conf doesnot display debug output when ipa-healthcheck tool is run
Product: Red Hat Enterprise Linux 9 Reporter: Sudhir Menon <sumenon>
Component: ipa-healthcheckAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 9.1CC: fcami, mpolovka, ssidhaye
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-healthcheck-0.9-7.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 11:58:55 UTC
Description of problem: 'debug=True' in ipahealthcheck.conf doesnot display debug output when ipa-healthcheck tool is run

Version-Release number of selected component (if applicable):
ipa-healthcheck-0.9-5.el9.noarch

How reproducible:
Always

Steps to Reproduce:
1. [root@server ~]# cat /etc/ipahealthcheck/ipahealthcheck.conf 
[default]
debug=True
2.Run ipa-healthcheck

Actual results:
2. Even after specifying debug=True in the configuration file, the debug output is not seen.
The same is seen when we specify --debug option to the ipa-healthcheck command.

Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Reading Dogtag specific config values
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
importing all plugin modules in ipaserver.plugins...
importing plugin module ipaserver.plugins.aci
importing plugin module ipaserver.plugins.automember
importing plugin module ipaserver.plugins.automount

Expected results:
When debug=True is specified in the ipa-healthcheck.conf file, the debug messages are displayed.

Additional info:

Comment 1 Rob Crittenden 2022-04-28 15:47:09 UTC
This also affects the verbose option, both of which are assigned prior to the merging of the cli and file options.

Comment 2 Michal Polovka 2022-05-18 14:28:41 UTC
Pre-verified manually using RHEL9.1 with ipa-healthcheck-0.9-7.el9.noarch

# cat /etc/ipahealthcheck/ipahealthcheck.conf
[default]
debug=True


# cat /etc/ipa-healthcheck 
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Reading Dogtag specific config values
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
importing all plugin modules in ipaserver.plugins...
importing plugin module ipaserver.plugins.aci
importing plugin module ipaserver.plugins.automember
importing plugin module ipaserver.plugins.automount
importing plugin module ipaserver.plugins.baseldap
ipaserver.plugins.baseldap is not a valid plugin module
...

Debug mode is respected, therefore marking as verified - tested. Automation pending.

Comment 5 Michal Polovka 2022-05-27 05:53:24 UTC
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.

Comment 7 errata-xmlrpc 2022-11-15 10:22:33 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-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