-
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
session affinity no longer set on backend services #348
Comments
|
I was wrong, it seems that it's not setting the session affinity correctly when updating.
|
Was able to reproduce. Whenever a backend_service is updated, session_affinity is reset to NONE (and a subsequent terraform apply notices this and corrects it). A quick glance at the code seems to suggest the problem is that the update code is written to only set options that have changed, which then results in session_affinity having a default value. |
While attempting to fix this, I uncovered an inconsistency with how connection draining default values are set in the GCP API. Filed a bug upstream. |
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 👉 [email protected]. Thanks! |
Terraform Version
v0.10.2
Affected Resource(s)
google_compute_backend_service
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
https://gist.github.com/thecodeassassin/ebf4df4769fe38d6febf1529e014b2ee
Expected Behavior
Should create a backend service that has the session affinity set.
Actual Behavior
What actually happened?
Steps to Reproduce
terraform apply
Important Factoids
I think it broke after upgrading from 0.9.x to 0.10.x.
The text was updated successfully, but these errors were encountered: