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_vpc_peering_connection: Allow active pending state during deletion #4140

Merged

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Apr 10, 2018

Most likely caused by eventual consistency.

=== RUN   TestAccDataSourceAwsVpcPeeringConnection_basic
--- FAIL: TestAccDataSourceAwsVpcPeeringConnection_basic (1239.22s)
    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_vpc_peering_connection.test (destroy): 1 error(s) occurred:
        
        * aws_vpc_peering_connection.test: Error waiting for VPC Peering Connection (pcx-1574737c) to be deleted: unexpected state 'active', wanted target 'rejected, deleted'. last error: %!s(<nil>)

=== RUN   TestAccAWSVPCPeeringConnection_tags
--- FAIL: TestAccAWSVPCPeeringConnection_tags (179.23s)
    testing.go:579: Error destroying resource! WARNING: Dangling resources
        may exist. The full state and error is shown below.
        
        Error: Error applying: 1 error(s) occurred:
        
        * aws_vpc_peering_connection.foo (destroy): 1 error(s) occurred:
        
        * aws_vpc_peering_connection.foo: Error waiting for VPC Peering Connection (pcx-8c7c6ae5) to be deleted: unexpected state 'active', wanted target 'rejected, deleted'. last error: %!s(<nil>)
10 tests passed (all tests)
=== RUN   TestAccAWSVPCPeeringConnection_plan
--- PASS: TestAccAWSVPCPeeringConnection_plan (71.98s)
=== RUN   TestAccAWSVPCPeeringConnection_failedState
--- PASS: TestAccAWSVPCPeeringConnection_failedState (82.19s)
=== RUN   TestAccAWSVPCPeeringConnection_peerRegionAndAutoAccept
--- PASS: TestAccAWSVPCPeeringConnection_peerRegionAndAutoAccept (88.49s)
=== RUN   TestAccAWSVPCPeeringConnectionAccepter_differentRegion
--- PASS: TestAccAWSVPCPeeringConnectionAccepter_differentRegion (94.51s)
=== RUN   TestAccAWSVPCPeeringConnectionAccepter_sameRegion
--- PASS: TestAccAWSVPCPeeringConnectionAccepter_sameRegion (122.65s)
=== RUN   TestAccAWSVPCPeeringConnection_tags
--- PASS: TestAccAWSVPCPeeringConnection_tags (126.29s)
=== RUN   TestAccAWSVPCPeeringConnection_options
--- PASS: TestAccAWSVPCPeeringConnection_options (131.02s)
=== RUN   TestAccAWSVPCPeeringConnection_importBasic
--- PASS: TestAccAWSVPCPeeringConnection_importBasic (142.79s)
=== RUN   TestAccAWSVPCPeeringConnection_region
--- PASS: TestAccAWSVPCPeeringConnection_region (143.10s)
=== RUN   TestAccAWSVPCPeeringConnection_basic
--- PASS: TestAccAWSVPCPeeringConnection_basic (177.32s)

@bflad bflad added bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. labels Apr 10, 2018
@bflad bflad added this to the v1.14.1 milestone Apr 10, 2018
@ghost ghost added the size/S Managed by automation to categorize the size of a PR. label Apr 10, 2018
@bflad bflad requested a review from a team April 10, 2018 16:28
Copy link
Contributor

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@bflad bflad merged commit 61ca925 into master Apr 11, 2018
@bflad bflad deleted the b-aws_vpc_peering_connection-deletion-eventual-consistency branch April 11, 2018 16:39
bflad added a commit that referenced this pull request Apr 11, 2018
@bflad
Copy link
Contributor Author

bflad commented Apr 11, 2018

This has been released in version 1.14.1 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 6, 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 6, 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/S 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