Closed wyardley closed 2 months ago
side note: I tried deleting and re-importing the resource, in hopes that would resolve the problem, but it did not.
Looks like what it's getting back from the API is:
2024-09-13T19:47:25.138-0700 [DEBUG] provider.terraform-provider-google: "nodePoolDefaults": {
2024-09-13T19:47:25.138-0700 [DEBUG] provider.terraform-provider-google: "nodeConfigDefaults": {
2024-09-13T19:47:25.138-0700 [DEBUG] provider.terraform-provider-google: "gcfsConfig": {},
But I don't actually see the provider trying to do anything when it "updates" the resource, and the fact that it sees the empty response as the value not being set is probably the underlying cause for this issue.
So this may be a provider issue, possibly related to https://github.com/GoogleCloudPlatform/magic-modules/pull/11553
As I mentioned to the author here, the test doesn't actually test updates: https://github.com/dominykasn/magic-modules/blob/22ea4977c565faa522b501f380e1461604d67645/mmv1/third_party/terraform/services/container/go/resource_container_node_pool_test.go.tmpl#L1739-L1743
@apeabody I think this is the right fix (upstream provider level issue introduced by vs. something with this module): https://github.com/GoogleCloudPlatform/magic-modules/pull/11717 Hopefully, someone can see if it's possible to get that approved quickly early next week if it looks good.
Unfortunately, I think this affects both 5.x and 6.x providers (albeit in different ways) - earlier ones will have the force replacement issue, and 6.2 will have the harmless (because the update doesn't actually succeed), but ugly, permadiff
https://github.com/hashicorp/terraform-provider-google/pull/19534 My fix should be going out in 6.4.0 🎉
Not sure if it will get cherry-picked back to 5.x or not.
hashicorp/terraform-provider-google#19534 My fix should be going out in 6.4.0 🎉
Not sure if it will get cherry-picked back to 5.x or not.
Thanks @wyardley! - Keeping an eye out. - We might need to consider bumping the minimum to v6.4, at least for Autopilot sub-modules.
@apeabody after updating to TPG 6.4.0, had to make the changes in #2111 locally to fully resolve this issue.
TL;DR
I'm seeing permadrift and an inability to suppress trying to update
gcfs_config.enabled
:Simple repro case below. I created the cluster with an older module version, then updated to 33.0.3. Creating with the new version creates no issue.
This could end up being a provider issue, but I would think at least when it's null, the module shouldn't try to set it.
Expected behavior
Terraform to not see a diff, and to apply changes in the case where the setting is changed in the module.
Observed behavior
Terraform keeps trying to set the value (and, in the case of < 6.2.0, also tries to force replace the nodepool)
5.43.0
6.2.0
Terraform Configuration
Terraform Version
Additional information
2048
2085