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

r/route_table: Increase no of not-found checks/retries #1791

Merged
merged 1 commit into from
Oct 3, 2017

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Oct 2, 2017

This is to address the following (rare) failure:

[17:04:31]	Error applying plan:
[17:04:31]	
[17:04:31]	1 error(s) occurred:
[17:04:31]	
[17:04:31]	* aws_route_table.priv_rt: 1 error(s) occurred:
[17:04:31]	
[17:04:31]	* aws_route_table.priv_rt: Error waiting for route table (rtb-2915b050) to become available: couldn't find resource (21 retries)

Snippet from debug log:

2017/10/01 16:01:57 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/CreateRouteTable Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Content-Type: text/xml;charset=UTF-8
Date: Sun, 01 Oct 2017 16:01:58 GMT
Server: AmazonEC2
Vary: Accept-Encoding


<?xml version="1.0" encoding="UTF-8"?>
<CreateRouteTableResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
    <requestId>17ec1df8-c4fc-4511-aac6-80dc78b7971b</requestId>
    <routeTable>
        <routeTableId>rtb-2915b050</routeTableId>
        <vpcId>vpc-68582a0e</vpcId>
        <routeSet>
            <item>
                <destinationCidrBlock>10.0.0.0/16</destinationCidrBlock>
                <gatewayId>local</gatewayId>
                <state>active</state>
                <origin>CreateRouteTable</origin>
            </item>
        </routeSet>
        <associationSet/>
        <propagatingVgwSet/>
        <tagSet/>
    </routeTable>
</CreateRouteTableResponse>
-----------------------------------------------------
2017/10/01 16:01:57 [INFO] Route Table ID: rtb-2915b050
2017/10/01 16:01:57 [DEBUG] Waiting for route table (rtb-2915b050) to become available


2017/10/01 16:01:57 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeRouteTables Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: ec2.us-west-2.amazonaws.com
User-Agent: aws-sdk-go/1.10.51 (go1.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.10.0-dev
Content-Length: 73
Authorization: AWS4-HMAC-SHA256 Credential=*REDACTED*/20171001/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=*REDACTED*
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20171001T160157Z
Accept-Encoding: gzip

Action=DescribeRouteTables&RouteTableId.1=rtb-2915b050&Version=2016-11-15
-----------------------------------------------------
2017/10/01 16:01:57 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeRouteTables Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Transfer-Encoding: chunked
Date: Sun, 01 Oct 2017 16:01:58 GMT
Server: AmazonEC2


<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidRouteTableID.NotFound</Code><Message>The routeTable ID 'rtb-2915b050' does not exist</Message></Error></Errors><RequestID>d46fd073-89b2-439e-b0d0-54cb9d7ecf24</RequestID></Response>
-----------------------------------------------------


2017/10/01 16:04:30 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/DescribeRouteTables Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: ec2.us-west-2.amazonaws.com
User-Agent: aws-sdk-go/1.10.51 (go1.9; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.10.0-dev
Content-Length: 73
Authorization: AWS4-HMAC-SHA256 Credential=*REDACTED*/20171001/us-west-2/ec2/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=*REDACTED*
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20171001T160430Z
Accept-Encoding: gzip

Action=DescribeRouteTables&RouteTableId.1=rtb-2915b050&Version=2016-11-15
-----------------------------------------------------
2017/10/01 16:04:30 [DEBUG] [aws-sdk-go] DEBUG: Response ec2/DescribeRouteTables Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Transfer-Encoding: chunked
Date: Sun, 01 Oct 2017 16:04:31 GMT
Server: AmazonEC2


<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidRouteTableID.NotFound</Code><Message>The routeTable ID 'rtb-2915b050' does not exist</Message></Error></Errors><RequestID>7b8a67c7-90d9-4a03-8703-05489d8c3429</RequestID></Response>
-----------------------------------------------------

@radeksimko radeksimko added the bug Addresses a defect in current functionality. label Oct 2, 2017
Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

👍

@radeksimko radeksimko merged commit e2c0c2b into master Oct 3, 2017
@radeksimko radeksimko deleted the b-aws-rtb-not-found-checks branch October 3, 2017 07:05
@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 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 11, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants