Open volym3ad opened 6 years ago
Or better way is to create simple map for different server types. Because the bigger the image the more time it takes to finish building. Like cx11 - 5 min, cx21 - 7 min, cx31 - 10 min and so on...
The idea with map sounds good, I experienced really long restore times with big images, I think about 20 minutes.
I think the best solution would be make the timeout configurable
While building an image in Hetzner I've noticed that current image timeout is not enough for images greater than cx21 to come up.
Although image creating is still in progress:
The current threshold is 5 minute as far as I can see from https://github.com/m110/packer-builder-hcloud/blob/master/builder/hcloud/step_wait_for_image.go#L24
Maybe bump threshold up to 10 minutes?