-
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
Blue-Green Upgrade Configuration Not Applied Correctly #17008
Comments
@vgupt312 can you share the complete config and debug log? Please post the log at gist and share the link. There are a few open issues. Can you see if they cover yours? |
Terraform plan output: |
@vgupt312 the plan does not tell what went wrong. Do you have the log for apply? In order to help investigete, can you share a minimum config (without dynamic code) that can be used to repro the issue? |
@vgupt312 is this still an issue? |
@vgupt312 closing this assuming it is no longer an issue. |
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. |
I am facing an issue with the blue-green upgrade strategy on Google Cloud Platform when applying the configuration using Terraform provider 5.11.0. Below is the relevant Terraform code and the corresponding configuration:
dynamic "blue_green_settings" {
for_each = lookup(local.node_pool_upgrade_settings, "strategy", "BLUE_GREEN") == "BLUE_GREEN" ? [1] : []
content {
node_pool_soak_duration = lookup(local.blue_green_settings, "node_pool_soak_duration", 1)
standard_rollout_policy {
batch_soak_duration = lookup(local.blue_green_settings, "batch_soak_duration", 1)
batch_percentage = lookup(local.blue_green_settings, "batch_node_count", null) == null ? lookup(local.blue_green_settings, "batch_percentage", 0.25) : null
batch_node_count = lookup(local.blue_green_settings, "batch_node_count", null)
}
}
}
Configuration:
strategy: "BLUE_GREEN"
blue_green_settings:
node_pool_soak_duration: 120s
batch_soak_duration: 300s
batch_percentage: 0.5
However, after applying this configuration, GCP is not considering the provided values and is displaying the following:
Upgrade strategy: Blue-green upgrade
Batch node count: 0
Batch soak duration: 0s
Nodepool soak duration: 3600s
It seems that the batch_node_count and batch_soak_duration are not being applied as expected.
Please investigate this issue and let me know if there's any misconfiguration or if there's a bug on the GCP side that needs attention.
However it is working fine when i am applying these settings using google command line.
I am attaching tfstate and other relevant documents.
![backend-pool-03-config](https://private-user-images.githubusercontent.com/24548518/297016028-3f6e8a99-e989-402c-ad27-9a2249dd7510.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzQxODQsIm5iZiI6MTczOTM3Mzg4NCwicGF0aCI6Ii8yNDU0ODUxOC8yOTcwMTYwMjgtM2Y2ZThhOTktZTk4OS00MDJjLWFkMjctOWEyMjQ5ZGQ3NTEwLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1MjQ0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwMDFhNzc1ZTVlOGQxYzg1Nzc1N2I2YjQ0MjZmZTc4MTZlZTk2NGEwYzVkNjllYjJhZDIxZmVkMTg1OWVjODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3fZO85ZY7zSKa9LsQ6NwgJjcwPCB3W7MsLWPLTT0Awk)
![terraform code](https://private-user-images.githubusercontent.com/24548518/297016037-1d1aa412-8ab0-4acd-8a0d-630d345c1c78.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzQxODQsIm5iZiI6MTczOTM3Mzg4NCwicGF0aCI6Ii8yNDU0ODUxOC8yOTcwMTYwMzctMWQxYWE0MTItOGFiMC00YWNkLThhMGQtNjMwZDM0NWMxYzc4LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1MjQ0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFkYTZiNmIxZWFiN2VkYzk4MDNmYjFiNjFjMTZjOWE4NjkxOTY4Mzk5NGVmOTRjYzYxZjcxODA3MjgwYTRmOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XrgVf7thrCs6xXLflP0rY557mT915gtnTGt6W4qjsjA)
![terraform config](https://private-user-images.githubusercontent.com/24548518/297016042-ce9409f6-e11e-49fc-8425-4ed273cf143a.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzQxODQsIm5iZiI6MTczOTM3Mzg4NCwicGF0aCI6Ii8yNDU0ODUxOC8yOTcwMTYwNDItY2U5NDA5ZjYtZTExZS00OWZjLTg0MjUtNGVkMjczY2YxNDNhLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1MjQ0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkYzIwODBhODhmZDc1NjdhMGYyMjNiMTg4MjVmYjk5NTMyZjQzNzIxNTNjMjVlM2NlZTYwZmNmNDEzMWMzODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oFaevlEpo4tto9t9wAS7qu67uZ8P6DLxUxkOKQg8vr4)
![tfstate](https://private-user-images.githubusercontent.com/24548518/297016045-0032001c-f973-42d7-bc52-bf05a6e1b66f.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzQxODQsIm5iZiI6MTczOTM3Mzg4NCwicGF0aCI6Ii8yNDU0ODUxOC8yOTcwMTYwNDUtMDAzMjAwMWMtZjk3My00MmQ3LWJjNTItYmYwNWE2ZTFiNjZmLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1MjQ0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjNjg4OTBiODA1YjllNjk2ZjRjZDdmMjYxODJjYWU3ZTg5ZTMyYWI1ZmU4MmJkZmNmZWIyNjc0OGM0MGZkYzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FsLkEN8dmb14v-oAWno3HSTUuNuAuUImwlbEFwtFeEs)
Thanks,
Vivek
The text was updated successfully, but these errors were encountered: