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/ecs_service: Add support for customTimeout on delete #10452

Merged
merged 2 commits into from
Jun 30, 2020

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Oct 10, 2019

Deletes can take a long time depending on how long the drain of the
service takes. This can lead to errors like:

 timeout while waiting for state to become 'INACTIVE' (last state: 'DRAINING', timeout: 10m0s)

This provides the option for a user to override the delete timeout

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:


Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

Deletes can take a long time depending on how long the drain of the
service takes. This can lead to errors like:

```
 timeout while waiting for state to become 'INACTIVE' (last state: 'DRAINING', timeout: 10m0s)
```

This provides the option for a user to override the delete timeout
@stack72 stack72 requested a review from a team October 10, 2019 13:08
@ghost ghost added service/ecs Issues and PRs that pertain to the ecs service. documentation Introduces or discusses updates to documentation. size/XS Managed by automation to categorize the size of a PR. labels Oct 10, 2019
@stack72
Copy link
Contributor Author

stack72 commented Jun 29, 2020

Hi @anGie44

I see this has been force pushed recently - does this mean it's going to land shortly? I mean this has been outstanding for 8 months with no response and now force-pushed..

Thanks

Paul

@anGie44 anGie44 added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 29, 2020
@anGie44
Copy link
Contributor

anGie44 commented Jun 29, 2020

hi @stack72, the force-push pertains to changes in master, (hopefully) not direct changes made to this PR's branch, as that was unintended. apologies for any confusion! if the PR is still in a good state on your end, I can provide my review comments.

@anGie44 anGie44 self-assigned this Jun 29, 2020
@anGie44 anGie44 added the waiting-response Maintainers are waiting on response from community or contributor. label Jun 29, 2020
@stack72
Copy link
Contributor Author

stack72 commented Jun 29, 2020

Wait, you overwote my changes to the PR without telling me this was the case?

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label Jun 29, 2020
@stack72
Copy link
Contributor Author

stack72 commented Jun 29, 2020

ah ok, it was because you were updating the PR from master :) Got it!

@anGie44
Copy link
Contributor

anGie44 commented Jun 29, 2020

i'm actually confused myself because I hadn't looked or had knowledge of this PR until you commented 😅 ... interesting that this PR got looped into that force-push...again, totally unintended

@anGie44
Copy link
Contributor

anGie44 commented Jun 29, 2020

Might also relate to errors reported in #4852

* aws_ecs_cluster.ecs: ClusterContainsContainerInstancesException: The Cluster cannot be deleted while Container Instances are active or draining.

@stack72
Copy link
Contributor Author

stack72 commented Jun 29, 2020

Wait, you are also confused? Do you need me to close and reopen a PR so I can be merged?

@anGie44
Copy link
Contributor

anGie44 commented Jun 29, 2020

@stack72, closing and reopening shouldn't be necessary. I don't see any merge/branch-related conflicts reported here. I was just commenting on the git behavior that caught me by surprise

Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

LGTM overall, just a minor comment in the docs.

Edit: Acceptance Tests

Output:

--- PASS: TestAccAWSEcsService_withDeploymentController_Type_External (53.51s)
--- PASS: TestAccAWSEcsServiceDataSource_basic (55.07s)
--- PASS: TestAccAWSEcsService_withPlacementStrategy_Type_Missing (1.13s)
--- PASS: TestAccAWSEcsService_disappears (58.49s)
--- PASS: TestAccAWSEcsService_withDeploymentMinimumZeroMaximumOneHundred (73.25s)
--- PASS: TestAccAWSEcsService_withMultipleCapacityProviderStrategies (76.71s)
--- PASS: TestAccAWSEcsService_withARN (76.72s)
--- PASS: TestAccAWSEcsService_withEcsClusterName (82.09s)
--- PASS: TestAccAWSEcsService_withDeploymentValues (81.94s)
--- PASS: TestAccAWSEcsService_basicImport (85.30s)
--- PASS: TestAccAWSEcsService_withFamilyAndRevision (87.40s)
--- PASS: TestAccAWSEcsService_withUnnormalizedPlacementStrategy (91.43s)
--- PASS: TestAccAWSEcsService_withForceNewDeployment (96.08s)
--- PASS: TestAccAWSEcsService_withIamRole (125.53s)
--- PASS: TestAccAWSEcsService_withPlacementConstraints (70.20s)
--- PASS: TestAccAWSEcsService_withPlacementConstraints_emptyExpression (74.08s)
--- PASS: TestAccAWSEcsService_withDaemonSchedulingStrategy (53.31s)
--- PASS: TestAccAWSEcsService_withDaemonSchedulingStrategySetDeploymentMinimum (53.63s)
--- PASS: TestAccAWSEcsService_withLbChanges (143.25s)
--- PASS: TestAccAWSEcsService_withPlacementStrategy (90.62s)
--- PASS: TestAccAWSEcsService_withReplicaSchedulingStrategy (63.72s)
--- PASS: TestAccAWSEcsService_withLaunchTypeEC2AndNetworkConfiguration (74.90s)
--- PASS: TestAccAWSEcsService_withRenamedCluster (164.23s)
--- PASS: TestAccAWSEcsService_Tags (76.20s)
--- PASS: TestAccAWSEcsService_ManagedTags (53.48s)
--- PASS: TestAccAWSEcsService_withLaunchTypeFargate (122.84s)
--- PASS: TestAccAWSEcsService_withLaunchTypeFargateAndPlatformVersion (122.22s)
--- PASS: TestAccAWSEcsService_withCapacityProviderStrategy (199.42s)
--- PASS: TestAccAWSEcsService_healthCheckGracePeriodSeconds (206.28s)
--- PASS: TestAccAWSEcsService_withMultipleTargetGroups (214.20s)
--- PASS: TestAccAWSEcsService_withAlb (224.08s)
--- PASS: TestAccAWSEcsService_withServiceRegistries_container (133.40s)
--- PASS: TestAccAWSEcsService_withDeploymentController_Type_CodeDeploy (234.28s)
--- PASS: TestAccAWSEcsService_withServiceRegistries (153.76s)
--- PASS: TestAccAWSEcsService_PropagateTags (176.26s)

@anGie44 anGie44 added the waiting-response Maintainers are waiting on response from community or contributor. label Jun 30, 2020
Co-authored-by: angie pinilla <angelinepinilla@gmail.com>
@anGie44 anGie44 added this to the v2.69.0 milestone Jun 30, 2020
@anGie44 anGie44 merged commit 0391f5b into hashicorp:master Jun 30, 2020
anGie44 added a commit that referenced this pull request Jun 30, 2020
@anGie44 anGie44 removed the waiting-response Maintainers are waiting on response from community or contributor. label Jun 30, 2020
@ghost
Copy link

ghost commented Jul 3, 2020

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Jul 31, 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 Jul 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/ecs Issues and PRs that pertain to the ecs 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