-
Notifications
You must be signed in to change notification settings - Fork 341
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
Use AWSRetry
on ec2 launch failures due to lack of capacity (InsuffienctInstanceCapacity
)
#1038
Comments
Files identified in the description:
If these files are inaccurate, please update the |
My experience with InsuffienctInstanceCapacity is that waiting a few minutes wouldn't be sufficient. Have you experienced cases where you've been able to grab capacity after retrying? |
An example of how to inject additional codes to retry can be found in ec2_vpc_net
( Different error code needed ;) ) |
Yes, this came from a CI pipeline I have (internal), after several tries, most of them did find capacity (it was probably launching a few dozen instances). In the end, these are test/molecule instances and the instance type isn't terrible important, so I changed from I do agree that retrying is not always going to work (or perhaps not even usually), but as long as the number of retries is not configurable by end users, it's difficult to deal with these things without making internal changes to the code, and I'd prefer that the number of internal retries is generally consistent. |
`ec2_instance` retry on `InsuffienctInstanceCapacity ` SUMMARY Closes #1038 Expands the use of the AWSRetry decorator to include InsuffienctInstanceCapacity errors. ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_instance Reviewed-by: Mark Chappell <None>
[PR #1039/0374961a backport][stable-4] `ec2_instance` retry on `InsuffienctInstanceCapacity ` This is a backport of PR #1039 as merged into main (0374961). SUMMARY Closes #1038 Expands the use of the AWSRetry decorator to include InsuffienctInstanceCapacity errors. ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_instance Reviewed-by: Jill R <None>
Summary
Similar to #927
I've hit some errors in launching ec2 instances where AWS was out of capacity for the specific instance type in that AZ (
InsuffienctInstanceCapacity
), however, it failed with the boto default of 4 retries. Like other operations, it could be useful to have more than 4, and it would be nice to have consistency with the other operations.I am not sure exactly where in the code this condition would be caught so I don't have a line to point to right now.
Issue Type
Feature Idea
Component Name
ec2_instance.py
ec2.py
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: