#8427 Nightly test failure in test_installation.TestInstallCA (certmonger timeout)
Closed: worksforme 13 days ago by frenaud. Opened 4 months ago by fcami.

testing_master_latest Nightly PR #305
logs

in def test_certmonger_reads_token_HSM(self):
(...)

  status = tasks.wait_for_request(self.master, request_id[0], 300)
    def wait_for_request(host, request_id, timeout=120):
        for _i in range(0, timeout, 5):
            result = host.run_command(
                "getcert list -i %s | grep status: | awk '{ print $2 }'" %
                request_id
            )

            state = result.stdout_text.strip()
            logger.info("certmonger request is in state %s", state)
            if state in ('CA_REJECTED', 'CA_UNREACHABLE', 'CA_UNCONFIGURED',
                         'NEED_GUIDANCE', 'NEED_CA', 'MONITORING'):
                break
            time.sleep(5)
        else:
>           raise RuntimeError("request timed out")
E           RuntimeError: request timed out

end of log:

INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd149:transport.py:513 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd149:transport.py:557 SUBMITTING
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd149:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.tasks:tasks.py:2233 certmonger request is in state SUBMITTING
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd150:transport.py:513 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd150:transport.py:557 SUBMITTING
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd150:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.tasks:tasks.py:2233 certmonger request is in state SUBMITTING
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd151:transport.py:513 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd151:transport.py:557 SUBMITTING
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd151:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.tasks:tasks.py:2233 certmonger request is in state SUBMITTING
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd152:transport.py:513 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd152:transport.py:557 SUBMITTING
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd152:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.tasks:tasks.py:2233 certmonger request is in state SUBMITTING
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd153:transport.py:513 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd153:transport.py:557 SUBMITTING
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd153:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.tasks:tasks.py:2233 certmonger request is in state SUBMITTING
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd154:transport.py:513 RUN getcert list -i 20200723001536 | grep status: | awk '{ print $2 }'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd154:transport.py:557 SUBMITTING
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd154:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.tasks:tasks.py:2233 certmonger request is in state SUBMITTING

Note: similar to https://pagure.io/freeipa/issue/8425 ?


The test had 10+ green runs. The issue was probably fixed with certmonger's fix https://pagure.io/certmonger/c/00e948049acf0ca1b61ed9c2b8579b06b4bcb46a?branch=master which made it into certmonger 0.79.12
Issue can be closed

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

13 days ago

Login to comment on this ticket.

Metadata