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/aws_storagegateway_smb_file_share: Acceptance tests failing - 'InvalidGatewayRequestException: The specified gateway is out of date' #20557

Closed
ewbankkit opened this issue Aug 13, 2021 · 4 comments · Fixed by #20579
Labels
service/storagegateway Issues and PRs that pertain to the storagegateway service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@ewbankkit
Copy link
Contributor

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

All the aws_storagegateway_smb_file_share resource acceptance tests are currently failing with errors similar to

% make testacc TESTARGS='-run=TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess -timeout 180m
=== RUN   TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
=== CONT  TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
    resource_aws_storagegateway_smb_file_share_test.go:74: Step 1/2 error: Error running apply: exit status 1
        
        Error: error creating Storage Gateway SMB File Share: InvalidGatewayRequestException: The specified gateway is out of date.
        {
          RespMetadata: {
            StatusCode: 400,
            RequestID: "98217e78-7847-4bbd-a3c1-828e9295983a"
          },
          Error_: {
            ErrorCode: "OutdatedGateway"
          },
          Message_: "The specified gateway is out of date."
        }
        
          with aws_storagegateway_smb_file_share.test,
          on terraform_plugin_test.tf line 154, in resource "aws_storagegateway_smb_file_share" "test":
         154: resource "aws_storagegateway_smb_file_share" "test" {
        
--- FAIL: TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess (276.71s)
FAIL
FAIL    github.com/terraform-providers/terraform-provider-aws/aws       280.056s
FAIL
make: *** [testacc] Error 1
@github-actions github-actions bot added the service/storagegateway Issues and PRs that pertain to the storagegateway service. label Aug 13, 2021
@ewbankkit ewbankkit added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Aug 13, 2021
@ewbankkit
Copy link
Contributor Author

There's nothing that stands out here, especially as all the other file gateway tests are passing.
I'll raise an AWS Support issue.

@mickey-hariparsad
Copy link

I am experiencing the same failure when creating a fgw with guest access. Originally it said the plan was malformed in the trace. Adding in all options stopped the plan malformed error in the trace logs. Although the plan malformed error is removed, the gateway outdate error remains the same.

2021-08-16T13:46:34.228+0200 [INFO] provider.terraform-provider-aws_v3.53.0_x5.exe: 2021/08/16 13:46:34 [DEBUG] [aws-sdk-go] DEBUG: Response storagegateway/CreateSMBFileShare Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 133
Content-Type: application/x-amz-json-1.1
Date: Mon, 16 Aug 2021 11:46:34 GMT

@github-actions
Copy link

This functionality has been released in v3.55.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. Thank you!

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/storagegateway Issues and PRs that pertain to the storagegateway service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
2 participants