New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase the timeout waiting for certificate issuance in installer #292
Conversation
|
@jcholast would it make sense to move this value into |
|
+1 |
|
@martbab @mbasti-rh: I checked the code and some parts already use api.env.startup_timeout for certmonger requests (in ipa_certupdate.py or ipa_cacert_manage.py for instance). Is it OK for you if I replace my hardcoded value with api.env.startup_timeout? |
|
IMHO anything is better than hardcoded values so you have my blessing. |
| @@ -309,7 +310,8 @@ 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) | |||
| timeout = api.env.startup_timeout + 60 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see hardcoded value (60)
AFAIK startup_timeout is 5 minutes yb default, so there is no need for additional 60 seconds
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
|
Fixed upstream |
During the server installation, the installer requests certificates
through certmonger. The current timeout is 60s and is too low.
Increase this timeout to 120s (the code checks the status each 5s
up to the timeout value).
https://fedorahosted.org/freeipa/ticket/6433