-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error waiting for AMI #1533
Comments
PS: The AMIs made it to those regions, so
is a bit of a pork pie. |
I am seeing this as well with the Oftentimes the AMI region copies time out and Packer exits, reporting that no artifacts were created. But when I check manually I find that some of the AMI copies succeeded and Packer didn't detect that and didn't clean up after itself. So I'm left with several AMIs and snapshots in several regions that I have to cleanup myself. As @delitescere suggested, having a way for Packer to automatically retry certain actions like AMI region copies or having Packer be able to restart at a certain point in the process (e.g. initial AMI is done; just continue from region copy onwards) would be very helpful. Furthermore, if Packer absolutely cannot continue, it would be nice if it correctly reported on or cleaned up any leftover AMIs and snapshots. |
For fun, I posted a $15 bounty for this issue. |
builder/amazon: Extend timeout and allow user override [GH-1533]
Not the same issue, but probably connected:
Although we have 300 seconds wait allowance, wait is erroring after 15 second without explanation |
This bug should be reopened, just 5 seconds wait and error:
|
Relates to hashicorp#1533 AWS is eventually consistent and instance can be not visibile for some time after creation. This fix eliminates describe-instances call before going to the proper wait loop
Same error as #617 but after some many minutes of waiting for the transfer.
Packer v0.7.1
Instance AMI
Timeouts are ultimately futile in a distributed environment.
What we really want is a way to retry, and do so without repeating all the expensive / heavy work if necessary (idempotent). It might be that we can skip to certain states in packer, passing appropriate ids on the command line (like the URL of the AMI on S3 if it was bundled successfully).
In lieu of that, the packer user should be able to specify timeouts and retry counts appropriate to their context. Packer can have sensible defaults, but those defaults aren't always adequate.
The text was updated successfully, but these errors were encountered: