Skip to content
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_memcache_instance: allow for updates to memcache_parameters.params field #9297

Open
jcanseco opened this issue Jun 4, 2021 · 4 comments
Labels
bug forward/review In review; remove label to forward service/memcache

Comments

@jcanseco
Copy link
Contributor

jcanseco commented Jun 4, 2021

Community Note

  • 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 the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

The google_memcache_instance resource has a memcache_parameters.params field which cannot be updated. Attempts to update this field results in the following API error:

googleapi: Error 400: The update mask is empty
com.google.apps.framework.request.StatusException: <eye3 title='INVALID_ARGUMENT'/> generic::INVALID_ARGUMENT: The update mask is empty
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.BadRequest",
    "fieldViolations": [
      {
        "description": "Invalid value: ",
        "field": "update_mask"
      }
    ]
  }
], detail:

The Terraform resource's Update function does not seem to touch the field at all.

However, from the API docs, it seems that the field should be updateable using the updateParameters and applyParameters methods.

New or Affected Resource(s)

  • google_memcache_instance

References

@rileykarson
Copy link
Collaborator

Terraform returning a bad update message here is a bug, and we can likely resolve it by making the field updatable. If it's resolved w/o doing so, we can re-classify this issue as an enhancement again.

@jcanseco
Copy link
Contributor Author

jcanseco commented Jun 7, 2021

Hi @rileykarson. To clarify, did you mean "if the request is not resolved without making the field updateable, then we can re-classify the issue as an enhancement"?

To answer this question: the customer does seem to want to be able to update the field since it is a use-case supported by the UI. I am not entirely sure if it is a use-case that is feasible to implement in Terraform given that updating parameters seem to be a special operation, but I linked to some API docs above that might allow it to be possible.

@rileykarson
Copy link
Collaborator

Close! "If the request is resolved without making the field updateable, then we can re-classify the issue as an enhancement"

We made this a bug because Terraform should never return that error message

@jcanseco
Copy link
Contributor Author

jcanseco commented Jun 7, 2021

Gotcha I see :)

@github-actions github-actions bot added forward/review In review; remove label to forward service/memcache labels Aug 17, 2023
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this issue Oct 18, 2023
…urce (hashicorp#9297)

* Use send_empty_value for replicaCount in Redis Cluster

* Add generated test for redis cluster

* Update the template file and remove the genereated file

---------

Co-authored-by: Demitri Swan <[email protected]>
[upstream:79fe43c34c8968f8bad9bb24271fb28f66f0d5f8]

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit that referenced this issue Oct 18, 2023
…urce (#9297) (#16302)

* Use send_empty_value for replicaCount in Redis Cluster

* Add generated test for redis cluster

* Update the template file and remove the genereated file

---------


[upstream:79fe43c34c8968f8bad9bb24271fb28f66f0d5f8]

Signed-off-by: Modular Magician <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug forward/review In review; remove label to forward service/memcache
Projects
None yet
Development

No branches or pull requests

4 participants