The nightly test test_replica_promotion.py::TestSubCAkeyReplication::test_scale_add_subca is failing on f40+. See PR #3783 with logs and report.
test_replica_promotion.py::TestSubCAkeyReplication::test_scale_add_subca
self = <ipatests.test_integration.test_replica_promotion.TestSubCAkeyReplication object at 0x7f833bd48c80> def test_scale_add_subca(self): master = self.master replica = self.replicas[0] subcas = {} for i in range(0, 16): name = "_".join((self.SUBCA_MASTER, str(i))) cn = "_".join((self.SUBCA_MASTER_CN, str(i))) > subcas[name] = self.add_subca(master, name, cn) test_integration/test_replica_promotion.py:817: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_integration/test_replica_promotion.py:611: in add_subca result = host.run_command([ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)> argv = ['ipa', 'ca-add', 'test_subca_master_8', '--subject', 'cn=test_subca_master_8', '--desc', ...] 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 '['ipa', 'ca-add', 'test_subca_master_8', '--subject', 'cn=test_subca_master_8', '--desc', 'subca']' returned non-zero exit status 1. pytest_ipa/integration/host.py:202: CalledProcessError ----------------------------- Captured stderr call ----------------------------- ipa: ERROR: stderr: ipa: ERROR: Request failed with status 500: Non-2xx response from CA REST API: 500.
Test scenario: - install IPA server - create subcas in loop After a few iterations, the ipa ca-add command returns an error:
ipa ca-add
ipa: ERROR: stderr: ipa: ERROR: Request failed with status 500: Non-2xx response from CA REST API: 500.
Tracker on pki side: https://github.com/dogtagpki/pki/issues/4677
Metadata Update from @frenaud: - Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-27181