Open frederic-arr opened 3 months ago
The API client currently uses an exponential backoff while waiting for actions. The version in the provider does not use a max time, so it can get to a point where there are minutes between each check.
We have added an alternative "truncated" backoff in a recent version of hcloud-go: https://github.com/hetznercloud/hcloud-go/pull/459
Unfortunately the hcloud-go
in the terraform provider is stuck on the v1 branch (see #877).
For now you can switch to a constant backoff by modifying your provider:
provider "hcloud" {
token = var.hcloud_token
poll_function = "constant"
poll_interval = "5s" # default is 500ms, which might cause rate-limit issues with the constant polling
}
This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.
What happened?
When creating several servers from snapshots, the provider sometimes waits an additional minute in the "Still creating..." state despite the server being ready for a while.
What did you expect to happen?
The creation should be marked as complete as soon as possible (without exceeding the API rate limit).
Please provide a minimal working example
var.image_id_arm
is the image id of my snapshot. The snapshot was made in NBG1 and is 350MB. It is made with the following packer file: