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: Retry ECS svc creation on ClusterNotFoundException #15066

Merged
merged 1 commit into from
Jun 5, 2017

Conversation

radeksimko
Copy link
Member

This is to address the following intermittent test failure:

=== RUN   TestAccAWSEcsService_withDeploymentValues
--- FAIL: TestAccAWSEcsService_withDeploymentValues (4.09s)
    testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:
        
        * aws_ecs_service.mongo: 1 error(s) occurred:
        
        * aws_ecs_service.mongo: ClusterNotFoundException: Cluster not found.
            status code: 400, request id: 8968a32f-48eb-11e7-b6ba-119633763b81 "mongodb-8799254687846428972"
FAIL

Here's a snippet from the debug log which proves this is the API call the error is coming from:

2017/06/04 06:03:31 [DEBUG] [aws-sdk-go] DEBUG: Response ecs/CreateService Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 68
Content-Type: application/x-amz-json-1.1
Date: Sun, 04 Jun 2017 06:03:31 GMT
Server: Server
X-Amzn-Requestid: 8968a32f-48eb-11e7-b6ba-119633763b81

{"__type":"ClusterNotFoundException","message":"Cluster not found."}
-----------------------------------------------------

Copy link
Contributor

@stack72 stack72 left a comment

Choose a reason for hiding this comment

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

More eventual consistency :(

@radeksimko radeksimko merged commit f24396b into master Jun 5, 2017
@radeksimko radeksimko deleted the b-aws-ecs-svc-consistency branch June 5, 2017 08:50
@ghost
Copy link

ghost commented Apr 11, 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 11, 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