Failure observed in test_integration/test_installation.py::TestInstallReplicaAgainstSpecificServer::test_replica_install_against_server_without_ca
ipa-custodia service is stopped when ipactl status is run
ipactl status
self = <ipatests.test_integration.test_installation.TestInstallReplicaAgainstSpecificServer object at 0x7f523ada0130> def test_replica_install_against_server_without_ca(self): """Replica install will fail complaining about CA role and exit code 4""" # stop custodia service on replica1 self.replicas[0].run_command('systemctl stop ipa-custodia.service') # check if custodia service is stopped > cmd = self.replicas[0].run_command('ipactl status') test_integration/test_installation.py:1484: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ipatests.pytest_ipa.integration.host.Host replica1.ipa.test (replica)> argv = 'ipactl status', set_env = True, stdin_text = None, log_stdout = True raiseonerr = True, cwd = None, bg = False, encoding = 'utf-8', ok_returncode = 0 def run_command(self, argv, set_env=True, stdin_text=None, log_stdout=True, raiseonerr=True, cwd=None, bg=False, encoding='utf-8', ok_returncode=0): """Wrapper around run_command to log stderr on raiseonerr=True :param ok_returncode: return code considered to be correct, you can pass an integer or sequence of integers """ result = super().run_command( argv, set_env=set_env, stdin_text=stdin_text, log_stdout=log_stdout, raiseonerr=False, cwd=cwd, bg=bg, encoding=encoding ) # in FIPS mode SSH may print noise to stderr, remove the string # "FIPS mode initialized" + optional newline. result.stderr_bytes = FIPS_NOISE_RE.sub(b'', result.stderr_bytes) try: result_ok = result.returncode in ok_returncode except TypeError: result_ok = result.returncode == ok_returncode if not result_ok and raiseonerr: result.log.error('stderr: %s', result.stderr_text) > raise subprocess.CalledProcessError( result.returncode, argv, result.stdout_text, result.stderr_text ) E subprocess.CalledProcessError: Command 'ipactl status' returned non-zero exit status 3. pytest_ipa/integration/host.py:200: CalledProcessError
ipactl status output
-------------------------------Captured log call-------------------------------- INFO ipatests.pytest_ipa.integration.host.Host.replica1.IPAOpenSSHTransport:transport.py:391 RUN systemctl stop ipa-custodia.service DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd44:transport.py:513 RUN systemctl stop ipa-custodia.service DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd44:transport.py:217 Exit code: 0 INFO ipatests.pytest_ipa.integration.host.Host.replica1.IPAOpenSSHTransport:transport.py:391 RUN ipactl status DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:513 RUN ipactl status DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 Directory Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 krb5kdc Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 kadmin Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 named Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 httpd Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 ipa-custodia Service: STOPPED DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 ipa-otpd Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 ipa-dnskeysyncd Service: RUNNING DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:557 1 service(s) are not running DEBUG ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:transport.py:217 Exit code: 3 ERROR ipatests.pytest_ipa.integration.host.Host.replica1.cmd45:host.py:199 stderr: 1 service(s) are not running
PR Log
This looks like a duplicate of https://pagure.io/freeipa/issue/8588
Yes, and the test issue should be fixed by PR #5528. We had an issue this week-end with the synchronization from pagure to github and the tests were not compiled with the fix but it should be correct now.
Closing as fixed, but feel free to re-open if the issue happens again.
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)