Skip to content
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

resource/aws_spot_instance_request: Bump delete timeout to 20mins #3435

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

radeksimko
Copy link
Member

This is mainly to address the following test failure:

=== RUN   TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes
--- FAIL: TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes (679.58s)
    testing.go:573: Error destroying resource! WARNING: Dangling resources
        may exist. The full state and error is shown below.
        
        Error: Error applying: 1 error(s) occurred:
        
        * aws_spot_instance_request.foo (destroy): 1 error(s) occurred:
        
        * aws_spot_instance_request.foo: Error terminating spot instance: Error waiting for instance (i-094860585f9ba7567) to terminate: timeout while waiting for state to become 'terminated' (last state: 'shutting-down', timeout: 10m0s)

I was playing with the idea of setting custom, higher timeout inside the test config, but since we get some guarantees that the instance is actually shutting down (i.e. transitioning from shutting-down to terminated) I can't think of any downside of bumping this for everyone.

I'm generally against cranking timeouts so high if it is error-based retry where the risk of false positive is much higher. This isn't the case though.

@radeksimko radeksimko added bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. labels Feb 19, 2018
@ghost ghost added the size/XS Managed by automation to categorize the size of a PR. label Feb 19, 2018
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm 👍 this change -- can you update the documentation too and I'll ✅

@radeksimko radeksimko force-pushed the b-spot-instance-req-timeout-bump branch from d620abe to d0eb889 Compare February 19, 2018 19:39
@ghost ghost added the size/XS Managed by automation to categorize the size of a PR. label Feb 19, 2018
@radeksimko
Copy link
Member Author

@bflad done, PTAL. 😉

Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call up the shipping armada! 🚢 :shipit: ⚓️ ⛵️ 🛥

@radeksimko radeksimko merged commit ceed7fb into master Feb 20, 2018
@radeksimko radeksimko deleted the b-spot-instance-req-timeout-bump branch February 20, 2018 06:11
@bflad bflad added this to the v1.10.0 milestone Feb 27, 2018
@bflad
Copy link
Contributor

bflad commented Feb 27, 2018

This has been released in version 1.10.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 7, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants