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

Move filestore enterprise features out of beta and add support for cu… #5875

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

garcia42
Copy link
Contributor

@garcia42 garcia42 commented Mar 31, 2022

Move Filestore enterprise features out of beta and add support for cmek for filestore instances

fixes hashicorp/terraform-provider-google#11173

If this PR is for Terraform, I acknowledge that I have:

  • [X ] Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • [X ] Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • [X ] Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • [X ] Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

filestore: promoted enterprise features to GA
filestore: added `kms_key_name` field to `google_filestore_instance` resource to support CMEK

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@shuyama1, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 359 insertions(+), 7 deletions(-))
Terraform Beta: Diff ( 3 files changed, 72 insertions(+), 7 deletions(-))
TF Validator: Diff ( 3 files changed, 101 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 1 file changed, 1 deletion(-))

@shuyama1
Copy link
Member

shuyama1 commented Apr 4, 2022

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 359 insertions(+), 7 deletions(-))
Terraform Beta: Diff ( 3 files changed, 72 insertions(+), 7 deletions(-))
TF Validator: Diff ( 3 files changed, 101 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 1 file changed, 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests rerun

@modular-magician
Copy link
Collaborator

Tests count:
Total tests: 1962
Passed tests 1722
Skipped tests: 234
Failed tests: 6

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccFirebaserulesRelease_BasicRelease|TestAccContainerCluster_withAuthenticatorGroupsConfig|TestAccComputeServiceAttachment_serviceAttachmentBasicExample|TestAccComputeForwardingRule_update|TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic
TestAccServiceNetworkingPeeredDNSDomain_basic
TestAccFirebaserulesRelease_BasicRelease
TestAccComputeServiceAttachment_serviceAttachmentBasicExample
TestAccComputeForwardingRule_update

Tests failed during RECORDING mode:
TestAccContainerCluster_withAuthenticatorGroupsConfig
TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate

Please fix these to complete your PR
You can view the build log here: https://storage.cloud.google.com/vcr-test-logs/beta/refs/heads/auto-pr-5875/artifacts/6897140a-5b81-477b-a3a8-bbfdb54b36bd/build-log/recording_test.log and the debug log for each test here: https://console.cloud.google.com/storage/browser/vcr-test-logs/beta/refs/heads/auto-pr-5875/artifacts/6897140a-5b81-477b-a3a8-bbfdb54b36bd/recording

- !ruby/object:Provider::Terraform::Examples
name: "filestore_instance_enterprise"
primary_resource_id: "instance"
skip_test: true
Copy link
Member

Choose a reason for hiding this comment

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

Question: Any particular reason we want to skip the test here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Followed up offline, this was following an example pubsub_topic_cmek.tf.erb and because the test creates cmek keys that aren't managed by terraform and break the test on subsequent runs

Copy link
Member

Choose a reason for hiding this comment

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

Built and tested it locally, but looks like I am having quota issues Quota limit 'EnterpriseStorageGibPerRegion' has been exceeded. Limit: 0 in region us-central1. Already request the quota increase.

Copy link
Member

Choose a reason for hiding this comment

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

Tested it locally and tests passed!

@shuyama1 shuyama1 self-requested a review April 5, 2022 17:43
@shuyama1
Copy link
Member

shuyama1 commented Apr 8, 2022

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 359 insertions(+), 7 deletions(-))
Terraform Beta: Diff ( 3 files changed, 72 insertions(+), 7 deletions(-))
TF Validator: Diff ( 3 files changed, 101 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 1 file changed, 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1971
Passed tests 1728
Skipped tests: 238
Failed tests: 5

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccAccessContextManager|TestAccOSConfigPatchDeployment_osConfigPatchDeploymentFullExample|TestAccContainerCluster_withAuthenticatorGroupsConfig|TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample[view]
TestAccOSConfigPatchDeployment_osConfigPatchDeploymentFullExample[view]
TestAccContainerCluster_withAuthenticatorGroupsConfig[view]
TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample[view]

Tests failed during RECORDING mode:
TestAccAccessContextManager[view]

Please fix these to complete your PR
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccRedisInstanceDatasource_basic|TestAccComposerEnvironment_update|TestAccComposerEnvironment_ComposerV2|TestAccComposerEnvironment_UpdateComposerV2|TestAccComposerEnvironment_composerV2PrivateServiceConnect|TestAccComposerEnvironment_composerV1MasterAuthNetworks|TestAccComposerEnvironment_composerV2MasterAuthNetworks|TestAccComposerEnvironment_composerV2MasterAuthNetworksUpdate|TestAccComposerEnvironment_composerV1MasterAuthNetworksUpdate|TestAccComposerEnvironmentAirflow2_withSoftwareConfig|TestAccComposerEnvironment_withSoftwareConfig|TestAccContainerCluster_withAuthenticatorGroupsConfig|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccRedisInstance_redisInstanceBasicExample|TestAccRedisInstance_update|TestAccRedisInstance_redisInstanceFullExample|TestAccRedisInstance_regionFromLocation|TestAccRedisInstance_redisInstanceAuthEnabled|TestAccRedisInstance_downgradeRedisVersion You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=278035

Copy link
Member

@shuyama1 shuyama1 left a comment

Choose a reason for hiding this comment

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

Sorry for taking so long to test and review this PR!

@@ -250,3 +248,7 @@ objects:
Server-specified ETag for the instance resource to prevent
simultaneous updates from overwriting each other.
output: true
- !ruby/object:Api::Type::String
name: 'kmsKeyName'
Copy link
Member

Choose a reason for hiding this comment

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

We probably need to add input: true here, as this field can not be updated. Adding input: true will generate ForceNew: true in provider, which means if user want update this field, terraform will delete and recreate the resource.

@@ -250,3 +248,7 @@ objects:
Server-specified ETag for the instance resource to prevent
simultaneous updates from overwriting each other.
output: true
- !ruby/object:Api::Type::String
name: 'kmsKeyName'
Copy link
Member

Choose a reason for hiding this comment

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

We probably need to add input: true here, as this field can not be updated. Adding input: true will generate ForceNew: true in provider, which means if user want update this field, terraform will delete and recreate the resource.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 350 insertions(+), 7 deletions(-))
Terraform Beta: Diff ( 3 files changed, 63 insertions(+), 7 deletions(-))
TF Validator: Diff ( 3 files changed, 101 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 1 file changed, 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1982
Passed tests 1739
Skipped tests: 240
Failed tests: 3

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic[view]
TestAccServiceNetworkingPeeredDNSDomain_basic[view]
TestAccFirebaserulesRelease_BasicRelease[view]

All tests passed
View the build log or the debug log for each test

@shuyama1 shuyama1 self-requested a review April 13, 2022 16:49
Copy link
Member

@shuyama1 shuyama1 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMEK support for Filestore Enterprise
3 participants