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/provider: DB Instance Delete Timeout (GovCloud) #15775

Closed
YakDriver opened this issue Oct 21, 2020 · 2 comments · Fixed by #15733
Closed

tests/provider: DB Instance Delete Timeout (GovCloud) #15775

YakDriver opened this issue Oct 21, 2020 · 2 comments · Fixed by #15733
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@YakDriver
Copy link
Member

YakDriver commented Oct 21, 2020

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

Fixed by #15733

Description

These tests fails on GovCloud:

TestAccAWSDBInstance_MSSQL_Domain
TestAccAWSDBInstance_MSSQL_DomainSnapshotRestore

With this error: Error: timeout while waiting for resource to be gone (last state: 'deleting', timeout: 40m0s).

New or Affected Resource(s)

  • aws_db_instance
  • aws_directory_service_directory

Terraform Configuration Files

Initial config:

resource "aws_db_instance" "mssql" {
  identifier = "tf-test-mssql"

  db_subnet_group_name = aws_db_subnet_group.rds_one.name

  instance_class          = data.aws_rds_orderable_db_instance.test.instance_class
  allocated_storage       = 20
  username                = "somecrazyusername"
  password                = "somecrazypassword"
  engine                  = data.aws_rds_orderable_db_instance.test.engine
  backup_retention_period = 0
  skip_final_snapshot     = true

  domain               = aws_directory_service_directory.foo.id
  domain_iam_role_name = aws_iam_role.role.name

  vpc_security_group_ids = [aws_security_group.rds-mssql.id]
}

resource "aws_directory_service_directory" "foo" {
  name     = "terraformtesting.com"
  password = "SuperSecretPassw0rd"
  type     = "MicrosoftAD"
  edition  = "Standard"

  vpc_settings {
    vpc_id     = aws_vpc.foo.id
    subnet_ids = [aws_subnet.main.id, aws_subnet.other.id]
  }
}

Debug Output

TestAccAWSDBInstance_MSSQL_Domain: testing_new.go:62: Error running post-test destroy, there may be dangling
resources: 2020/10/20 20:17:34 [DEBUG] Using modified User-Agent: Terraform/0.12.29 
HashiCorp-terraform-exec/0.10.0
        
        Error: timeout while waiting for resource to be gone (last state: 'deleting', timeout: 40m0s)

--- FAIL: TestAccAWSDBInstance_MSSQL_Domain (4980.80s)

References

@YakDriver YakDriver added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. partition/aws-us-gov Pertains to the aws-us-gov partition. labels Oct 21, 2020
@ghost ghost added service/directoryservice service/rds Issues and PRs that pertain to the rds service. labels Oct 21, 2020
@YakDriver YakDriver added this to the v3.13.0 milestone Oct 28, 2020
@ghost
Copy link

ghost commented Oct 29, 2020

This has been released in version 3.13.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Nov 27, 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 as resolved and limited conversation to collaborators Nov 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant