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

F/aws fsx windows file system: Support Support updating throughput_capacity and Storage_Capacity #15582

Merged

Conversation

nikhil-goenka
Copy link
Contributor

@nikhil-goenka nikhil-goenka commented Oct 9, 2020

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #15558

Release note for CHANGELOG:


Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSFsxWindowsFileSystem_ThroughputCapacity'
--- PASS: TestAccAWSFsxWindowsFileSystem_ThroughputCapacity (3546.05s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3548.249s
$ make testacc TESTARGS='-run=TestAccAWSFsxWindowsFileSystem_StorageCapacity'
--- PASS: TestAccAWSFsxWindowsFileSystem_StorageCapacity (2681.58s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2683.927s
...

@nikhil-goenka nikhil-goenka requested a review from a team October 9, 2020 19:37
@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/fsx Issues and PRs that pertain to the fsx service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Oct 9, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Oct 9, 2020
@DrFaust92 DrFaust92 removed the needs-triage Waiting for first response or review from a maintainer. label Oct 10, 2020
@DrFaust92 DrFaust92 self-assigned this Oct 10, 2020
@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Oct 10, 2020
Copy link
Collaborator

@DrFaust92 DrFaust92 left a comment

Choose a reason for hiding this comment

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

LGTM

--- PASS: TestAccAWSFsxWindowsFileSystem_StorageCapacity (3376.82s)
--- PASS: TestAccAWSFsxWindowsFileSystem_basic (3243.67s)
--- PASS: TestAccAWSFsxWindowsFileSystem_ThroughputCapacity (3338.47s)

@DrFaust92 DrFaust92 removed their assignment Oct 23, 2020
@breathingdust
Copy link
Member

LGTM 🚀 Thanks @nikhil-goenka for the contribution!

Verified Acceptance Tests in Commercial (us-west-2)

make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSFsxWindowsFileSystem_ThroughputCapacity'

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxWindowsFileSystem_ThroughputCapacity -timeout 120m
=== RUN   TestAccAWSFsxWindowsFileSystem_ThroughputCapacity
=== PAUSE TestAccAWSFsxWindowsFileSystem_ThroughputCapacity
=== CONT  TestAccAWSFsxWindowsFileSystem_ThroughputCapacity
--- PASS: TestAccAWSFsxWindowsFileSystem_ThroughputCapacity (3631.91s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3633.552s

make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSFsxWindowsFileSystem_StorageCapacity'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxWindowsFileSystem_StorageCapacity -timeout 120m
=== RUN   TestAccAWSFsxWindowsFileSystem_StorageCapacity
=== PAUSE TestAccAWSFsxWindowsFileSystem_StorageCapacity
=== CONT  TestAccAWSFsxWindowsFileSystem_StorageCapacity
--- PASS: TestAccAWSFsxWindowsFileSystem_StorageCapacity (3261.52s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3263.013s

make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSFsxWindowsFileSystem_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxWindowsFileSystem_basic -timeout 120m
=== RUN   TestAccAWSFsxWindowsFileSystem_basic
=== PAUSE TestAccAWSFsxWindowsFileSystem_basic
=== CONT  TestAccAWSFsxWindowsFileSystem_basic
--- PASS: TestAccAWSFsxWindowsFileSystem_basic (3277.35s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3278.789s

@breathingdust breathingdust added this to the v3.17.0 milestone Nov 23, 2020
@breathingdust breathingdust merged commit 1aec8ee into hashicorp:master Nov 23, 2020
breathingdust added a commit that referenced this pull request Nov 23, 2020
@ghost
Copy link

ghost commented Nov 24, 2020

This has been released in version 3.17.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!

return nil, "", nil
}

return filesystem, aws.StringValue(filesystem.AdministrativeActions[0].Status), nil
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is missing a length check on AdministrativeActions, which can cause a panic. Created followup issue: #16440


func waitForFsxFileSystemUpdateOptimizing(conn *fsx.FSx, id string, timeout time.Duration) error {
stateConf := &resource.StateChangeConf{
Pending: []string{fsx.StatusInProgress},
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like FSx also uses a PENDING status before it goes in progress. Created followup issue: #16440

@ghost
Copy link

ghost commented Dec 24, 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 Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/fsx Issues and PRs that pertain to the fsx service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

r/aws_fsx_windows_file_system: Support updating throughput_capacity
4 participants