You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error updating ResourcePolicy "projects/X/regions/us-central1/resourcePolicies/daily-backup-policy": googleapi: Error 400: Patching guest_flush field is not supported., badRequest
#20499
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
But I can't determine if this is an enhancement or a bug, because in terraform registry there isn't any advice explaining that it is not possible to update the argument guest_flush which is auto managed, since the user is not setting any value for the guest_flush argument of the snapshot_properties block code, but in the other hand in the API documentation the guestFlush field is not listed in the available Patch methods.
The guest_flush value gets defaulted to null when the snapshot_properties block is created and then null is treated as false. The provider then takes every field in the block and sends it to the API (guest_flush included). This is seen as an attempt to patch even tough it wasn't set previously.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.5
on linux_amd64
Affected Resource(s)
google_compute_resource_policy
Terraform Configuration
Before the change:
after the change
Debug Output
Encrypted with your PK and uploaded here: https://drive.google.com/file/d/1o2_aJuZ5m29FU3cgmljH-9zVvxE6QkoS/view?usp=sharing
Expected Behavior
I wanted to add a label to a snapshot
Actual Behavior
it failed:
Steps to reproduce
terraform apply
Important Factoids
No response
References
No response
b/381430194
The text was updated successfully, but these errors were encountered: