packer-builder-hcloud icon indicating copy to clipboard operation
packer-builder-hcloud copied to clipboard

Increase waiting time for image to be ready

Open volym3ad opened this issue 5 years ago • 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?

volym3ad avatar Aug 15 '18 08:08 volym3ad

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

volym3ad avatar Oct 03 '18 11:10 volym3ad

The idea with map sounds good, I experienced really long restore times with big images, I think about 20 minutes.

m110 avatar Oct 28 '18 17:10 m110

I think the best solution would be make the timeout configurable

Jalle19 avatar Oct 30 '18 18:10 Jalle19