The nightly test test_integration/test_vault.py::TestInstallKRA:: ()::test_create_and_retrieve_vault_replica_without_krafailed with E subprocess.CalledProcessError: Command '['ipa', 'vault-add', 'ci_test_vault_replica_without_kra', '--password', 'password', '--type', 'symmetric']' returned non-zero exit status 1.
test_integration/test_vault.py::TestInstallKRA:: ()::test_create_and_retrieve_vault_replica_without_kra
E subprocess.CalledProcessError: Command '['ipa', 'vault-add', 'ci_test_vault_replica_without_kra', '--password', 'password', '--type', 'symmetric']' returned non-zero exit status 1.
PR393, logs
self = <ipatests.test_integration.test_vault.TestInstallKRA object at 0x7f213dee1f98> def test_create_and_retrieve_vault_replica_without_kra(self): # create vault self.replicas[0].run_command([ "ipa", "vault-add", self.vault_name_replica_without_KRA, "--password", self.vault_password, > "--type", "symmetric", ]) test_integration/test_vault.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ipatests.pytest_ipa.integration.host.Host replica0.ipa.test (replica)> argv = ['ipa', 'vault-add', 'ci_test_vault_replica_without_kra', '--password', 'password', '--type', ...] set_env = True, stdin_text = None, log_stdout = True, raiseonerr = True cwd = None, ok_returncode = 0 def run_command(self, argv, set_env=True, stdin_text=None, log_stdout=True, raiseonerr=True, cwd=None, 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(Host, self).run_command( argv, set_env=set_env, stdin_text=stdin_text, log_stdout=log_stdout, raiseonerr=False, cwd=cwd ) 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 ) E subprocess.CalledProcessError: Command '['ipa', 'vault-add', 'ci_test_vault_replica_without_kra', '--password', 'password', '--type', 'symmetric']' returned non-zero exit status 1. pytest_ipa/integration/host.py:90: CalledProcessError ----------------------------- Captured stderr call ----------------------------- [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: Removing leading `/' from member names [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/ipareplica-install.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/ipareplica-conncheck.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/ipareplica-ca-install.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: Removing leading `/' from hard link targets [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/ipaserver-kra-install.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/ipaclient-uninstall.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/iparestore.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] tar: /var/log/ipabackup.log: Warning: Cannot stat: No such file or directory [ipatests.pytest_ipa.integration.host.Host.master.cmd30] Exit code: 0 [ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] READ /tmp/tmp.zbLoQzCCgA [ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN ['rm', '-f', '/tmp/tmp.zbLoQzCCgA'] [ipatests.pytest_ipa.integration.host.Host.master.cmd31] RUN ['rm', '-f', '/tmp/tmp.zbLoQzCCgA'] [ipatests.pytest_ipa.integration.host.Host.master.cmd31] Exit code: 0 [ipatests.pytest_ipa.integration] Collecting journal from: replica0.ipa.test [ipatests.pytest_ipa.integration.host.Host.replica0.ParamikoTransport] RUN ['journalctl', '--since', '-1h'] [ipatests.pytest_ipa.integration.host.Host.replica0.cmd35] RUN ['journalctl', '--since', '-1h'] [ipatests.pytest_ipa.integration.host.Host.replica0.cmd35] Exit code: 0 [ipatests.pytest_ipa.integration] Collecting journal from: master.ipa.test [ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN ['journalctl', '--since', '-1h'] [ipatests.pytest_ipa.integration.host.Host.master.cmd32] RUN ['journalctl', '--since', '-1h'] [ipatests.pytest_ipa.integration.host.Host.master.cmd32] Exit code: 0 [ipatests.pytest_ipa.integration.host.Host.replica0.ParamikoTransport] RUN ['ipa', 'vault-add', 'ci_test_vault_replica_without_kra', '--password', 'password', '--type', 'symmetric'] [ipatests.pytest_ipa.integration.host.Host.replica0.cmd36] RUN ['ipa', 'vault-add', 'ci_test_vault_replica_without_kra', '--password', 'password', '--type', 'symmetric'] [ipatests.pytest_ipa.integration.host.Host.replica0.cmd36] ipa: ERROR: an internal error has occurred [ipatests.pytest_ipa.integration.host.Host.replica0.cmd36] Exit code: 1 ipa: ERROR: stderr: ipa: ERROR: an internal error has occurred
We really need the Apache error log at least to diagnose this.
This is against the ipa-4-6 branch.
Closing as works for me, issue happened only once.
Metadata Update from @frenaud: - Issue close_status updated to: worksforme - Issue status updated to: Closed (was: Open)
The same error occurred in [testing_ipa-4.6] Nightly PR #1108 , but for the test test_create_and_retrieve_vault_replica_with_kra. report, full logs
test_create_and_retrieve_vault_replica_with_kra
Metadata Update from @mpolovka: - Issue status updated to: Open (was: Closed)
Does not hapen any more
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)