mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Increase the timeout waiting for certificate issuance in installer
During the server installation, the installer requests certificates through certmonger. The current timeout is 60s and is too low. Increase this timeout to api.env.startup_timeout as done in ipa_cacert_manage or ipa_certupdate.py (the code checks the status each 5s up to the timeout value). https://fedorahosted.org/freeipa/ticket/6433 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
a24cd01304
commit
9e3c17c6de
@@ -30,6 +30,7 @@ import dbus
|
||||
import shlex
|
||||
import subprocess
|
||||
import tempfile
|
||||
from ipalib import api
|
||||
from ipapython.ipa_log_manager import root_logger
|
||||
from ipaplatform.paths import paths
|
||||
from ipaplatform import services
|
||||
@@ -309,7 +310,7 @@ def request_and_wait_for_cert(
|
||||
reqId = request_cert(nssdb, nickname, subject, principal,
|
||||
passwd_fname, dns, ca, profile,
|
||||
pre_command, post_command)
|
||||
state = wait_for_request(reqId, timeout=60)
|
||||
state = wait_for_request(reqId, api.env.startup_timeout)
|
||||
ca_error = get_request_value(reqId, 'ca-error')
|
||||
if state != 'MONITORING' or ca_error:
|
||||
raise RuntimeError("Certificate issuance failed ({})".format(state))
|
||||
|
Reference in New Issue
Block a user