-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Permadiff and / or force replacement on node.config.gcfs_config.enabled
#2100
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
Comments
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:
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 GoogleCloudPlatform/magic-modules#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): 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 |
hashicorp/terraform-provider-google#19534 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. |
Fixes terraform-google-modules#2100 This basically replicates the fixes from terraform-google-modules#2093, terraform-google-modules#2095, but at the scope of implicitly defined nodepools.
Fixes terraform-google-modules#2100 This basically replicates the fixes from terraform-google-modules#2093, terraform-google-modules#2095, but at the scope of implicitly defined nodepools.
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
The text was updated successfully, but these errors were encountered: