m110 / packer-builder-hcloud

Packer builder plugin for Hetzner Cloud - https://hetzner.cloud
MIT License
25 stars 4 forks source link

Increase waiting time for image to be ready #4

Open volym3ad opened 6 years ago

volym3ad commented 6 years ago

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

m110 commented 5 years ago

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

Jalle19 commented 5 years ago

I think the best solution would be make the timeout configurable