m110/packer-builder-hcloud

Increase waiting time for image to be ready

volym3ad opened this issue · 3 comments

While building an image in Hetzner I've noticed that current image timeout is not enough for images greater than cx21 to come up.

2018-08-15 11 25 01

Although image creating is still in progress:

2018-08-15 11 24 54

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?

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...

m110 commented

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