#9556 ipahealthcheck.ipa.idns IPADNSSystemRecordsCheck give exception error.
Closed: invalid by rcritten. Opened by sumenon.

Issue

ipahealthcheck.ipa.idns IPADNSSystemRecordsCheck give exception error.

Steps to Reproduce

  1. ipa-healthcheck --source ipahealthcheck.ipa.idns --check IPADNSSystemRecordsCheck

Actual behavior

Invalid IP address fe80::f816:3eff:fe8d:2fee for master.testrealm.test.: cannot use link-local IP address fe80::f816:3eff:fe8d:2fee
[
{
"source": "ipahealthcheck.ipa.idns",
"check": "IPADNSSystemRecordsCheck",
"result": "ERROR",
"uuid": "ea7150db-ed2b-436b-b40b-ec0ad1fb4e84",
"when": "20240315055848Z",
"duration": "10.000390",
"kw": {
"exception": "Request timed out"
}
}
]

Expected behavior

Exception should be fixed.

Version/Release/Distribution

ipa-server-4.9.13-8
389-ds-base-1.4.3.39-2
idm-pki-ca-10.15.0-1

Additional info:

2024-03-18T02:34:08-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG RUN ['ipa-healthcheck', '--source', 'ipahealthcheck.dogtag.ca', '--check', 'DogtagCertsConfigCheck', '--output-type', 'json']
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG [
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG {
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "source": "ipahealthcheck.dogtag.ca",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "check": "DogtagCertsConfigCheck",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "result": "CRITICAL",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "uuid": "2607f5cc-ce31-4549-9263-873a8f620f22",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "when": "20240318063412Z",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "duration": "0.233267",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "kw": {
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "exception": "[Errno 2] No such file or directory: '/var/lib/pki/pki-tomcat/conf/ca/CS.cfg'",
2024-03-18T02:34:11-0400 [ipatests.pytest_ipa.integration.host.Host.master.cmd204] DEBUG "traceback": "Traceback (most recent call last):\n File \"/usr/lib/python3.6/site-packages/ipahealthcheck/core/core.py\", line 56, in run_plugin\n for result in plugin.check():\n File \"/usr/lib/python3.6/site-packages/ipahealthcheck/core/plugin.py\", line 18, in wrapper\n for result in f(args, *kwds):\n File \"/usr/lib/python3.6/site-packages/ipahealthcheck/dogtag/ca.py\", line 61, in check\n blobs[nickname], '=')\n File \"/usr/lib/python3.6/site-packages/ipapython/directivesetter.py\", line 186, in get_directive\n with open(filename, \"r\") as fd:\nFileNotFoundError: [Errno 2] No such file or directory: '/var/lib/pki/pki-tomcat/conf/ca/CS.cfg'\n"


Filed against the wrong project. Should be https://github.com/freeipa/freeipa-healthcheck/issues

healthcheck by default has a 10-second timeout. You can modify the healthcheck config file and extend it. It is likely an environment issue (e.g. DNS is slow).

The second issue is not related and should be a separate ticket. It's strange that it is trying to run a CA check if the CA is not installed (no CS.cfg).

@rcritten thanks for the answer i will log the ticket in freeipa-healthcheck, we can close this one.

Moved to https://github.com/freeipa/freeipa-healthcheck/issues/327

Metadata Update from @rcritten:
- Issue close_status updated to: invalid
- Issue status updated to: Closed (was: Open)

Metadata