-
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
Unsupported path in fieldMask #20187
Comments
Hi @jagada1010! According to the error, the problem is that the
Could you try this configuration again instead of using |
Hi @ggtisc. Thank you for your response. But I am still getting the same error. |
This seems more like a troubleshooting issue than a bug. I have changed the variables that you share for their values, simplifying the code no errors have been obtained. Below I share the used code:
You could try again substituting the variables with their values until you find the value(s) you are entering which is/are causing this error. For this I also suggest you review the documentation and confirm that each value meets the requirements for both, the terraform registry and the API. |
This is a real bug. The problem is that this MMv1 template generates the |
After some tries I can't replicate this issue. I'm forwarding this issue for a deep review and verify if it is an intermittent bug |
Community Note
Terraform Version & Provider Version(s)
Terraform v6.9.0
on
Affected Resource(s)
google_redis_cluster
Terraform Configuration
Debug Output
Expected Behavior
module.redis_cluster["redis-poc-002"].google_redis_cluster.redis_cluster will be updated in-place
~ resource "google_redis_cluster" "redis_cluster" {
id = "projects/******/locations/us-central1/clusters/redis-poc-002"
name = "redis-poc-002"
# (18 unchanged attributes hidden)
Plan: 0 to add, 1 to change, 0 to destroy.
The hour in the maintenance policy's start time should have changed from 2 to 3 hours.
Same error with day argument in weekly_maintenance_window should have changed from FRIDAY to THURSDAY.
Actual Behavior
No change happened instead got this error :
module.redis_cluster["redis-poc-002"].google_redis_cluster.redis_cluster: Modifying... [id=projects/prj----poc/locations/us-central1/clusters/redis-poc-002]
╷
│ Error: Error updating Cluster "projects/****/locations/us-central1/clusters/redis-poc-002": googleapi: Error 400: unsupported path in fieldMask: maintenance_policy. Allowed values are persistence_config, deletion_protection_enabled, maintenance_policy.weekly_maintenance_window, cross_cluster_replication_config, display_name, shard_count, replica_count, redis_configs, maintenance_window, maintenance_policy.deny_maintenance_periods, cluster_endpoints
│ Details:
│ [
│ {
│ "@type": "type.googleapis.com/google.rpc.BadRequest",
│ "fieldViolations": [
│ {
│ "field": "maintenance_policy"
│ }
│ ]
│ }
│ ]
│
│ with module.redis_cluster["redis-poc-002"].google_redis_cluster.redis_cluster,
│ on ..\Module\main.tf line 1, in resource "google_redis_cluster" "redis_cluster":
│ 1: resource "google_redis_cluster" "redis_cluster" {
Steps to reproduce
terraform apply
Important Factoids
I am able to attach the maintenance policy during the creation of the Redis cluster but once it's created I can't add or edit the existing maintenance policy.
References
#20101
b/380246854
The text was updated successfully, but these errors were encountered: