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

provider/aws: Consider ACTIVE as pending state during ECS svc deletion #12986

Merged
merged 1 commit into from
Mar 23, 2017

Conversation

radeksimko
Copy link
Member

This is to avoid the following failure/error which occurred in our nightly acceptance tests:

=== RUN   TestAccAWSEcsServiceWithARN
--- FAIL: TestAccAWSEcsServiceWithARN (105.79s)
    testing.go:332: Error destroying resource! WARNING: Dangling resources
        may exist. The full state and error is shown below.
        
        Error: Error applying: 1 error(s) occurred:
        
        * aws_ecs_service.mongo (destroy): 1 error(s) occurred:
        
        * aws_ecs_service.mongo: unexpected state 'ACTIVE', wanted target 'INACTIVE'. last error: %!s(<nil>)
        
        State: aws_ecs_cluster.default:
          ID = arn:aws:ecs:us-west-2:*******:cluster/terraformecstest1
          name = terraformecstest1
        aws_ecs_service.mongo:
          ID = arn:aws:ecs:us-west-2:*******:service/mongodb
          cluster = arn:aws:ecs:us-west-2:*******:cluster/terraformecstest1
          deployment_maximum_percent = 200
          deployment_minimum_healthy_percent = 100
          desired_count = 2
          name = mongodb
          placement_constraints.# = 0
          placement_strategy.# = 0
          task_definition = arn:aws:ecs:us-west-2:*******:task-definition/mongodb:1910
        
          Dependencies:
            aws_ecs_cluster.default
            aws_ecs_task_definition.mongo
        aws_ecs_task_definition.mongo:
          ID = mongodb
          arn = arn:aws:ecs:us-west-2:*******:task-definition/mongodb:1910
          container_definitions = bdae2e050cbcada848106f226d19af2b62c3433b
          family = mongodb
          network_mode = 
          placement_constraints.# = 0
          revision = 1910
          task_role_arn =

@radeksimko radeksimko merged commit 202cde6 into master Mar 23, 2017
@radeksimko radeksimko deleted the b-aws-ecs-svc-add-pending-state branch March 23, 2017 09:29
@ghost
Copy link

ghost commented Apr 15, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants