-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_container_cluster
fails with an API error on 6.11.0
#20301
google_container_cluster
fails with an API error on 6.11.0
#20301
Comments
It looks like this may have been introduced by #20105 in the latest release. |
@SphericalKat can you share a plan? It would be helpful to see what fields Terraform thinks need to be updated, since there were a few different changes to this resource in this release. |
I'm not able to reproduce this issue with the supplied config - if I apply on 6.10.0 and then upgrade to 6.11.0, no changes are detected. There must be some specific condition that triggers this error. |
@melinath sure, here's the planned changes. I've included the other resources marked for a change in case they were relevant too. edit: I'd like to add that the new changes were applied directly with 6.11.0, and previous changes were applied with older versions because the provider wasn't pinned to a specific version using
|
Facing exactly the same issue as @ferrastas and @melinath . This is a blocking issue for us when using |
@ferrastas @josephweinerfulfilld @SphericalKat is there any chance y'all had previously been managing the user managed encryption keys feature outside of Terraform? (It doesn't look like it, since the values are all empty, but possibly setting it up and removing it later would change what the API returns vs. never setting it in the first place.) |
I'm able to reproduce the error when trying to update the fields in place, but I'm not able to reproduce the behavior of having a diff on the field despite making no changes. There's a note in the related tests that these fields can only be set on create, but there is also update support present, so I'm not sure if that note might be outdated. We will need to fix the update issue by marking the field as immutable (ForceNew) but that would trigger delete & recreate for anyone experiencing the diff behavior. |
@melinath (replying for @josephweinerfulfilld): We have not been using the user managed encryption keys outside of Terraform. We ran into this error in a newly set-up environment, so I'm pretty confident that there shouldn't have been any manual configuration relics. |
@melinath not possible, we faced this issue on an almost fresh new project. If it helps, it was created using provider version 6.10, this same plan was working yesterday, just before the 6.11 release. In fact, pinning to 6.10 the plan is not showing changes on the cluster resource (and succeeding with the apply) |
The current behavior of these fields is:
In the future, we are going to support setting / unsetting these fields, but it will never be truly freely settable, since there needs to be a CA root rotation operation in order to transition from set to unset or vice-versa. |
@ferrastas @josephweinerfulfilld @SphericalKat @ryanfulfilld thanks! Is there any chance that one of you could share the API response you're getting for the resource's state refresh? You can get these logged by running |
I have a tentative fix up at:
If someone could try some manual testing to see if this resolves the issue that would be great, since I can't reproduce locally. The API responses would also be super helpful. Thanks! |
I'm working on an update to the branches - per @ahmedtd's comment above, it should be possible to update in place as long as you're not enabling/disabling the functionality (which folks on this thread aren't). |
Looks like the update functionality doesn't currently work as expected so moving forward with removing update support & marking the field as immutable for now. |
Hey all - we've released 6.11.1, which should resolve this issue; however, we still haven't been able to reproduce it. Please try out the new release and respond here to let me know whether it fixed the problem. If not, please share an API response as described above. If anyone impacted is working with a Google Technical Account Manager or Customer Engineer, please ask them to reach out internally to help us with further investigation. |
@melinath I ran a |
@melinath thanks for the quick fix and sorry about my slow response, it was nighttime here :P I'll check out 6.11.1 and see if the problem still occurs Edit: It works! Thanks, everyone who contributed! |
Community Note
Terraform Version & Provider Version(s)
Terraform v1.4.4
on x86_64
Affected Resource(s)
google_container_cluster
Terraform Configuration
Debug Output
No response
Expected Behavior
The apply should have passed, because there is no change to the resource.
Actual Behavior
The
terraform apply
fails with the following API error:Note that the exact same configuration works when we pin the provider version to
6.10.0
Steps to reproduce
6.11.0
of thegoogle
providerterraform apply
Important Factoids
No response
References
No response
b/378725361
The text was updated successfully, but these errors were encountered: