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

Final retries for redshift resources #9796

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Final retries for redshift resources #9796

merged 1 commit into from
Aug 20, 2019

Conversation

ryndaniels
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates #7873

Release note for CHANGELOG:

BUG FIXES
* resource/aws_redshift_cluster: Final retry after timeout deleting cluster
* resource/aws_redshift_snapshot_copy_grant: Final retries after timeouts finding and deleting grants

Output from acceptance testing:

$ make testacc TESTARGS="-run=TestAccAWSRedshiftCluster"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSRedshiftCluster -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSRedshiftCluster_basic
=== PAUSE TestAccAWSRedshiftCluster_basic
=== RUN   TestAccAWSRedshiftCluster_withFinalSnapshot
=== PAUSE TestAccAWSRedshiftCluster_withFinalSnapshot
=== RUN   TestAccAWSRedshiftCluster_kmsKey
=== PAUSE TestAccAWSRedshiftCluster_kmsKey
=== RUN   TestAccAWSRedshiftCluster_enhancedVpcRoutingEnabled
=== PAUSE TestAccAWSRedshiftCluster_enhancedVpcRoutingEnabled
=== RUN   TestAccAWSRedshiftCluster_loggingEnabled
=== PAUSE TestAccAWSRedshiftCluster_loggingEnabled
=== RUN   TestAccAWSRedshiftCluster_snapshotCopy
=== PAUSE TestAccAWSRedshiftCluster_snapshotCopy
=== RUN   TestAccAWSRedshiftCluster_iamRoles
=== PAUSE TestAccAWSRedshiftCluster_iamRoles
=== RUN   TestAccAWSRedshiftCluster_publiclyAccessible
=== PAUSE TestAccAWSRedshiftCluster_publiclyAccessible
=== RUN   TestAccAWSRedshiftCluster_updateNodeCount
=== PAUSE TestAccAWSRedshiftCluster_updateNodeCount
=== RUN   TestAccAWSRedshiftCluster_updateNodeType
=== PAUSE TestAccAWSRedshiftCluster_updateNodeType
=== RUN   TestAccAWSRedshiftCluster_tags
=== PAUSE TestAccAWSRedshiftCluster_tags
=== RUN   TestAccAWSRedshiftCluster_forceNewUsername
=== PAUSE TestAccAWSRedshiftCluster_forceNewUsername
=== RUN   TestAccAWSRedshiftCluster_changeAvailabilityZone
=== PAUSE TestAccAWSRedshiftCluster_changeAvailabilityZone
=== RUN   TestAccAWSRedshiftCluster_changeEncryption1
=== PAUSE TestAccAWSRedshiftCluster_changeEncryption1
=== RUN   TestAccAWSRedshiftCluster_changeEncryption2
=== PAUSE TestAccAWSRedshiftCluster_changeEncryption2
=== CONT  TestAccAWSRedshiftCluster_basic
=== CONT  TestAccAWSRedshiftCluster_changeEncryption2
=== CONT  TestAccAWSRedshiftCluster_withFinalSnapshot
=== CONT  TestAccAWSRedshiftCluster_publiclyAccessible
=== CONT  TestAccAWSRedshiftCluster_changeEncryption1
=== CONT  TestAccAWSRedshiftCluster_changeAvailabilityZone
=== CONT  TestAccAWSRedshiftCluster_forceNewUsername
=== CONT  TestAccAWSRedshiftCluster_updateNodeType
=== CONT  TestAccAWSRedshiftCluster_updateNodeCount
=== CONT  TestAccAWSRedshiftCluster_loggingEnabled
=== CONT  TestAccAWSRedshiftCluster_iamRoles
=== CONT  TestAccAWSRedshiftCluster_tags
=== CONT  TestAccAWSRedshiftCluster_kmsKey
=== CONT  TestAccAWSRedshiftCluster_snapshotCopy
=== CONT  TestAccAWSRedshiftCluster_enhancedVpcRoutingEnabled
--- PASS: TestAccAWSRedshiftCluster_basic (609.49s)
--- PASS: TestAccAWSRedshiftCluster_enhancedVpcRoutingEnabled (622.87s)
--- PASS: TestAccAWSRedshiftCluster_snapshotCopy (637.76s)
--- PASS: TestAccAWSRedshiftCluster_loggingEnabled (638.27s)
--- PASS: TestAccAWSRedshiftCluster_tags (644.49s)
--- PASS: TestAccAWSRedshiftCluster_kmsKey (686.31s)
--- PASS: TestAccAWSRedshiftCluster_publiclyAccessible (702.46s)
--- PASS: TestAccAWSRedshiftCluster_iamRoles (751.41s)
--- PASS: TestAccAWSRedshiftCluster_withFinalSnapshot (898.51s)
--- PASS: TestAccAWSRedshiftCluster_forceNewUsername (966.63s)
--- PASS: TestAccAWSRedshiftCluster_changeAvailabilityZone (1090.95s)
--- PASS: TestAccAWSRedshiftCluster_changeEncryption1 (2167.83s)
--- PASS: TestAccAWSRedshiftCluster_updateNodeCount (2255.97s)
--- PASS: TestAccAWSRedshiftCluster_changeEncryption2 (2278.53s)
--- PASS: TestAccAWSRedshiftCluster_updateNodeType (2481.67s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       2482.854s

make testacc TESTARGS="-run=TestAccAWSRedshiftSnapshotCopyGrant"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSRedshiftSnapshotCopyGrant -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSRedshiftSnapshotCopyGrant_Basic
=== PAUSE TestAccAWSRedshiftSnapshotCopyGrant_Basic
=== RUN   TestAccAWSRedshiftSnapshotCopyGrant_Update
=== PAUSE TestAccAWSRedshiftSnapshotCopyGrant_Update
=== CONT  TestAccAWSRedshiftSnapshotCopyGrant_Basic
=== CONT  TestAccAWSRedshiftSnapshotCopyGrant_Update
--- PASS: TestAccAWSRedshiftSnapshotCopyGrant_Basic (26.51s)
--- PASS: TestAccAWSRedshiftSnapshotCopyGrant_Update (64.35s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       66.392s

@ryndaniels ryndaniels requested a review from a team August 16, 2019 13:45
@ghost ghost added size/S Managed by automation to categorize the size of a PR. service/redshift Issues and PRs that pertain to the redshift service. labels Aug 16, 2019
@ryndaniels ryndaniels added the bug Addresses a defect in current functionality. label Aug 16, 2019
@ryndaniels ryndaniels added this to the v2.25.0 milestone Aug 16, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

One optional fix, otherwise LGTM 🚀

--- PASS: TestValidateRedshiftClusterDbName (0.00s)
--- PASS: TestResourceAWSRedshiftClusterMasterPasswordValidation (0.00s)
--- PASS: TestResourceAWSRedshiftClusterIdentifierValidation (0.00s)
--- PASS: TestResourceAWSRedshiftClusterMasterUsernameValidation (0.00s)
--- PASS: TestResourceAWSRedshiftClusterFinalSnapshotIdentifierValidation (0.00s)
--- PASS: TestAccAWSRedshiftSnapshotCopyGrant_Basic (10.46s)
--- PASS: TestAccAWSRedshiftSnapshotCopyGrant_Update (19.49s)
--- PASS: TestAccAWSRedshiftCluster_basic (580.51s)
--- PASS: TestAccAWSRedshiftCluster_tags (587.75s)
--- PASS: TestAccAWSRedshiftCluster_loggingEnabled (603.09s)
--- PASS: TestAccAWSRedshiftCluster_publiclyAccessible (620.78s)
--- PASS: TestAccAWSRedshiftCluster_kmsKey (632.17s)
--- PASS: TestAccAWSRedshiftCluster_snapshotCopy (694.75s)
--- PASS: TestAccAWSRedshiftCluster_enhancedVpcRoutingEnabled (724.63s)
--- PASS: TestAccAWSRedshiftCluster_iamRoles (755.00s)
--- PASS: TestAccAWSRedshiftCluster_withFinalSnapshot (857.73s)
--- PASS: TestAccAWSRedshiftCluster_forceNewUsername (1098.57s)
--- PASS: TestAccAWSRedshiftCluster_changeAvailabilityZone (1170.32s)
--- PASS: TestAccAWSRedshiftCluster_changeEncryption2 (2160.28s)
--- PASS: TestAccAWSRedshiftCluster_updateNodeType (2166.14s)
--- PASS: TestAccAWSRedshiftCluster_changeEncryption1 (2209.24s)
--- PASS: TestAccAWSRedshiftCluster_updateNodeCount (2651.73s)

@@ -260,6 +275,9 @@ func findAwsRedshiftSnapshotCopyGrant(conn *redshift.Redshift, grantName string,

return nil
})
if isResourceTimeoutError(err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the resource.Retry() above here may be extraneous as it has no return resource.RetryableError() 👍

@ryndaniels ryndaniels merged commit 879c07a into master Aug 20, 2019
@ryndaniels ryndaniels deleted the rfd-redshift branch August 20, 2019 12:08
@ghost
Copy link

ghost commented Aug 23, 2019

This has been released in version 2.25.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 1, 2019

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 Nov 1, 2019
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/redshift Issues and PRs that pertain to the redshift 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