mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
fix(server): timeout in server creation when waiting on next actions (#561)
While we wait a long time on the `create_server` actions, we only wait 2 minutes on any follow up actions like `start_server` or `attach_network`. This is sometimes not enough. This commit adds a longer wait timeout for the `next_actions` returned after creating the server. Co-authored-by: Marco Montesi <marco.montesi@gmail.com>
This commit is contained in:
parent
a2d5d1f695
commit
98e9c52c74
2 changed files with 8 additions and 1 deletions
2
changelogs/fragments/server-create-next-actions.yml
Normal file
2
changelogs/fragments/server-create-next-actions.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- server - Wait up to 30 minutes for every action returned from server create
|
||||
|
|
@ -473,7 +473,12 @@ class AnsibleHCloudServer(AnsibleHCloud):
|
|||
# server from a custom images
|
||||
resp.action.wait_until_finished(max_retries=362) # 362 retries >= 1802 seconds
|
||||
for action in resp.next_actions:
|
||||
action.wait_until_finished()
|
||||
# Starting the server or attaching to the network might take a few minutes,
|
||||
# depending on the current activity in the project.
|
||||
# This waits up to 30minutes for each action in series, but in the background
|
||||
# the actions are mostly running in parallel, so after the first one the other
|
||||
# actions are usually completed already.
|
||||
action.wait_until_finished(max_retries=362) # 362 retries >= 1802 seconds
|
||||
|
||||
rescue_mode = self.module.params.get("rescue_mode")
|
||||
if rescue_mode:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue