#9478 Nightly test failure: healthcheck test_integration.test_ipahealthcheck.TestIpaHealthCheck returns ldapi connection failure
Closed: fixed by frenaud. Opened by rcritten.

Issue

test_ipahealthcheck_topology_with_ipactl_stop() runs ipactl stop then executes healthcheck with:
# ipa-healthcheck --source ipahealthcheck.ipa.topology
It is failing with a traceback:

/usr/lib/python3.11/site-packages/ipahealthcheck/meta/services.py", line 122, in check
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 self.service_name = self.get_service_name('KEYS')
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 File "/usr/lib/python3.11/site-packages/ipahealthcheck/meta/services.py", line 31, in get_service_name
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 api.Backend.ldap2.connect()
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 File "/usr/lib/python3.11/site-packages/ipalib/backend.py", line 69, in connect
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 conn = self.create_connection(args, *kw)
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 File "/usr/lib/python3.11/site-packages/ipaserver/plugins/ldap2.py", line 187, in create_connection
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 client.external_bind(server_controls=serverctrls,
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 File "/usr/lib/python3.11/site-packages/ipapython/ipaldap.py", line 1251, in external_bind
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 with self.error_handler():
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 File "/usr/lib64/python3.11/contextlib.py", line 155, in exit
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 self.gen.throw(typ, value, traceback)
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 File "/usr/lib/python3.11/site-packages/ipapython/ipaldap.py", line 1149, in error_handler
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 raise errors.NetworkError(uri=self.ldap_uri,
ipatests.pytest_ipa.integration.host.Host.master.cmd366:transport.py:557 ipalib.errors.NetworkError: cannot connect to 'ldapi://%2Frun%2Fslapd-IPA-TEST.socket':100:

Reported to freeipa-healthcheck upstream as https://github.com/freeipa/freeipa-healthcheck/issues/312


Metadata Update from @frenaud:
- Issue tagged with: test-failure

freeipa-healthcheck issue has been fixed and the fix is included in freeipa-healthcheck-0.16-2 (currently in updates-testing for f38/f39, already in updates repo for f40).
Let's wait for the next nightly runs and we'll be able to close this issue.

Metadata Update from @frenaud:
- Issue tagged with: tracker

The test is now green, see for instance the logs for the pipeline using master branch + fedora 39 in PR #3364.
Closing as fixed

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

Metadata