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 - 'debug=True' in ipahealthcheck.conf doesnot display debug output when ipa-healthcheck tool is run
Summary: 'debug=True' in ipahealthcheck.conf doesnot display debug output when ipa-hea...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ipa-healthcheck
Version: 9.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-28 11:58 UTC by Sudhir Menon
Modified: 2022-11-15 11:21 UTC (History)
3 users (show)

Fixed In Version: ipa-healthcheck-0.9-7.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 10:22:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-8205 0 None None None 2022-04-28 13:29:48 UTC
Red Hat Issue Tracker RHELPLAN-120340 0 None None None 2022-04-28 13:29:56 UTC
Red Hat Product Errata RHBA-2022:8113 0 None None None 2022-11-15 10:22:43 UTC

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


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