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

tests/ds/network_acls: Inconsistent result on Terraform 0.15.0-alpha #17778

Closed
YakDriver opened this issue Feb 23, 2021 · 3 comments
Closed

tests/ds/network_acls: Inconsistent result on Terraform 0.15.0-alpha #17778

YakDriver opened this issue Feb 23, 2021 · 3 comments
Labels
prerelease-tf-testing Pertains to testing Terraform releases prior to release. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@YakDriver
Copy link
Member

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Acceptance Test

TestAccDataSourceAwsNetworkAcls_VpcID produces inconsistent result after apply on Terraform v0.15.0-alpha:

    data_source_aws_network_acls_test.go:78: Step 1/1 error: Error running apply: exit status 1
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to aws_network_acl.acl[1], provider
        "provider[\"registry.terraform.io/hashicorp/aws\"]" produced an unexpected
        new value: Root resource was present, but now absent.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to aws_network_acl.acl[0], provider
        "provider[\"registry.terraform.io/hashicorp/aws\"]" produced an unexpected
        new value: Root resource was present, but now absent.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
        
    testing_new.go:63: Error running post-test destroy, there may be dangling resources: exit status 1
        
        Error: Error deleting VPC: DependencyViolation: The vpc 'vpc-0bcf8c22c43d8e391' has dependencies and cannot be deleted.
        	status code: 400, request id: 74bd0956-3cae-4051-91c1-66b40ff25638
        
        
--- FAIL: TestAccDataSourceAwsNetworkAcls_VpcID (309.70s)

Affected Resources

  • resource/aws_network_acls
  • data-source/aws_network_acls

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_vpc" "test" {
  cidr_block = "10.0.0.0/16"

  tags = {
    Name = "yakceptance"
  }
}

resource "aws_network_acl" "acl" {
  count = 2

  vpc_id = aws_vpc.test.id

  tags = {
    Name = "yakceptance"
  }
}

data "aws_network_acls" "test" {
  vpc_id = aws_network_acl.acl[0].vpc_id
}

References

@YakDriver YakDriver added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. prerelease-tf-testing Pertains to testing Terraform releases prior to release. labels Feb 23, 2021
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Feb 23, 2021
@YakDriver
Copy link
Member Author

YakDriver commented Feb 25, 2021

As noted in #17776 (note), this data source (or more likely, the underlying resource) needs fixes along these lines:

@bflad
Copy link
Contributor

bflad commented Mar 29, 2021

This should be resolved as of #18388 👍

@bflad bflad closed this as completed Mar 29, 2021
@ghost
Copy link

ghost commented Apr 28, 2021

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 as resolved and limited conversation to collaborators Apr 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
prerelease-tf-testing Pertains to testing Terraform releases prior to release. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

No branches or pull requests

2 participants