#9766 Nightly test failure in test_idm_api
Closed: fixed by frenaud. Opened by mpolovka.

The test test_integration/test_idm_api.py::TestAPIScenario::test_idm_user_add and all the subsequent tests fail since 2025-03-18 due the error in the setup phase

DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd37:transport.py:557 CalledProcessError(Command ['/bin/systemctl', 'restart', 'httpd.service'] returned non-zero exit status 1: 'Job for httpd.service failed because the control process exited with error code.\nSee "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.\n')
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd37:transport.py:557 The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd37:transport.py:557 Restarting the web server to pick up resolv.conf changes
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd37:transport.py:217 Exit code: 1
ERROR    ipatests.pytest_ipa.integration.host.Host.master.cmd37:host.py:201 stderr: Checking DNS domain ufreeipa.test., please wait ...
Reverse record for IP address x.x.x.x already exists

ipaserver-install.log shows:

2025-03-18T06:13:17Z DEBUG The ipa-server-install command failed, exception: CalledProcessError: CalledProcessError(Command ['/bin/systemctl', 'restart', 'httpd.service'] returned non-zero exit status 1: 'Job for httpd.service failed because the control process exited with error code.\nSee "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.\n')
2025-03-18T06:13:17Z ERROR CalledProcessError(Command ['/bin/systemctl', 'restart', 'httpd.service'] returned non-zero exit status 1: 'Job for httpd.service failed because the control process exited with error code.\nSee "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.\n')
2025-03-18T06:13:17Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

There is an AVC log present

----
time->Tue Mar 18 04:41:37 2025
type=AVC msg=audit(1742272897.451:81): avc:  denied  { read } for  pid=829 comm="systemd-homed" name="home" dev="vda4" ino=2118 scontext=system_u:system_r:systemd_homed_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=dir permissive=0

Run link: https://release-dashboard.engineering.redhat.com/p/freeipa_upstream_nightly/qualification/master/Nightly-latest-fips/run/21542/job/717158
Logs: https://idm-artifacts.psi.redhat.com/idm-ci/freeipa_upstream_nightly/Nightly-latest-fips/master/2025-03-18_04-33/latest/test_idm_api/1/
Report: https://idm-artifacts.psi.redhat.com/idm-ci/freeipa_upstream_nightly/Nightly-latest-fips/master/2025-03-18_04-33/latest/test_idm_api/1/report.htm

The issue is not present any more (see for instance https://$ARTIFACTS_SERVIER/idm-ci/freeipa_upstream_nightly/Nightly-latest-fips/master/2025-12-23_04-33/latest/test_idm_api/1/report.html?sort=result). Closing as fixed.

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

Metadata