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

Cannot remove or update max_utilization field of backend service #7169

Assignees
Labels

Comments

@hyww
Copy link
Contributor

hyww commented Sep 1, 2020

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 an 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 an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v0.13.1
+ provider registry.terraform.io/hashicorp/google v3.37.0

Affected Resource(s)

  • google_compute_backend_service

Terraform Configuration Files

resource "google_compute_backend_service" "default" {
    health_checks                   = [
        "<heath check>",
    ]
    name                            = "google-http-backend-test-2"
    port_name                       = "port-name"
    protocol                        = "HTTP"

    backend {
        balancing_mode               = "RATE"
        capacity_scaler              = 1
        group                        = "projects/<project>/zones/asia-east1-b/instanceGroups/hyww-test-b"
        max_rate                     = 9999
        max_utilization                     = null
    }
}

Debug Output

https://gist.github.com/hyww/0661f64290198e4909cce437ab148bef

Panic Output

Expected Behavior

  1. being able to remove max_utilization field by setting it to null

This is an optional parameter if the backend's balancingMode is UTILIZATION.
https://cloud.google.com/compute/docs/reference/rest/v1/backendServices

  1. triggering diff and update when max_utilization field has been changed

Actual Behavior

  1. get default value 0.8 if we set it to null
  2. no diff/update is triggered if only max_utilization field has been updated in config

Steps to Reproduce

  1. terraform apply with config provided above
  2. use the API and see max_utilization with value 0.8
  3. change max_utilization to 1
  4. terraform apply and get no diff, no update

Important Factoids

References

@hyww
Copy link
Contributor Author

hyww commented Oct 15, 2020

After doing some experiments today, I could say that whether max_utilization exists or not doesn't affect the behavior of RATE mode backends. Thus, I think cannot update max_utilization will be the only problem left for this issue.

@ghost
Copy link

ghost commented Nov 19, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.