leonidlm / packer-builder-softlayer

A builder plugin for packer.io for a SoftLayer cloud
MIT License
38 stars 32 forks source link

Timeout error when trying to create image #6

Closed jonyen closed 9 years ago

jonyen commented 9 years ago

Hi, I'm currently encountering the following error in the image creation process with certain builds:

==> softlayer: Preparing for capturing the instance image. Image snapshot type is Flex. ==> softlayer: Waiting for an image (4397b92d-4217-4b7a-912f-da1fafd365d7) to finish it's creation... ==> softlayer: Error waiting for instance to become ACTIVE again after image creation call. Error: Timeout while waiting to for the instance to become ready

Any ideas? Thanks.

leonidlm commented 9 years ago

After the request to capture an image is sent to SoftLayer API, the builder will wait until there will be no active transactions on the instance, which means that the capture process has finished successfully. (https://github.com/leonidlm/packer-builder-softlayer/blob/3691828134fa683a834e8e0fe56df12799206322/builder/softlayer/step_capture_image.go#L35).

It seems that this process is reaching timeout before the image is created. Did you try to increase the instance_state_timeout ?

jonyen commented 9 years ago

Ok, yeah, I just tried increasing the instance_state_timeout and it works. Thanks!