The nightly tests test_integration/test_ipahealthcheck.py::TestIpaHealthCheckWithADtrust::test_ipahealthcheck_with_external_ad_trust and test_integration/test_trust.py::TestTrust::test_establish_external_treedomain_trust are failing in the step calling ipa trust-add --external=True. See PR #647 and #649.
test_integration/test_ipahealthcheck.py::TestIpaHealthCheckWithADtrust::test_ipahealthcheck_with_external_ad_trust
test_integration/test_trust.py::TestTrust::test_establish_external_treedomain_trust
ipa trust-add --external=True
Fedora33 logs and report:
self = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheckWithADtrust object at 0x7fea749bedc0> def test_ipahealthcheck_with_external_ad_trust(self): """ This testcase checks that when external trust is configured between IPA and AD tree domain, IPATrustDomainsCheck doesnot display ERROR """ tasks.configure_dns_for_trust(self.master, self.tree_ad) > tasks.establish_trust_with_ad( self.master, self.ad_treedomain, extra_args=['--range-type', 'ipa-ad-trust', '--external=True']) test_integration/test_ipahealthcheck.py:1546: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pytest_ipa/integration/tasks.py:665: in establish_trust_with_ad run_repeatedly( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)> command = ['ipa', 'trust-add', '--type', 'ad', 'adtree.test', '--range-type', ...] assert_zero_rc = True, test = None, timeout = 30 kwargs = {'stdin_text': 'Secret123'}, time_waited = 32, time_step = 2 result = <pytest_multihost.transport.SSHCommand object at 0x7fea749ca0d0> return_code_ok = False, test_ok = True def run_repeatedly(host, command, assert_zero_rc=True, test=None, timeout=30, **kwargs): """ Runs command on host repeatedly until it's finished successfully (returns 0 exit code and its stdout passes the test function). Returns True if the command was executed succesfully, False otherwise. This method accepts additional kwargs and passes these arguments to the actual run_command method. """ time_waited = 0 time_step = 2 # Check that the test is a function if test: assert callable(test) while(time_waited <= timeout): result = host.run_command(command, raiseonerr=False, **kwargs) return_code_ok = not assert_zero_rc or (result.returncode == 0) test_ok = not test or test(result.stdout_text) if return_code_ok and test_ok: # Command successful return True else: # Command not successful time.sleep(time_step) time_waited += time_step > raise AssertionError("Command: {cmd} repeatedly failed {times} times, " "exceeding the timeout of {timeout} seconds." .format(cmd=' '.join(command), times=timeout // time_step, timeout=timeout)) E AssertionError: Command: ipa trust-add --type ad adtree.test --range-type ipa-ad-trust --external=True --admin Administrator --password repeatedly failed 15 times, exceeding the timeout of 30 seconds. pytest_ipa/integration/tasks.py:1737: AssertionError
master:
ipa-4-9:
Metadata Update from @rcritten: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Still present in [testing_ipa-4.9_latest_selinux] Nightly PR #678, report
Login to comment on this ticket.