-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
VPN forced replacement #14264
VPN forced replacement #14264
Comments
For me the refresh must get the current value of the attribut |
After looking to the code : https://github.com/hashicorp/terraform-provider-google/blob/main/google/resource_compute_ha_vpn_gateway.go seems that there is no Update method, that could explain why we have trouble here no ? |
What a co-incidence that we're seeing this with Terraform version 0.13.7 just from today itself? Is this possibly because of some changes to Google API? |
@Maarc-D I have tested on below config, and couldn't repro the issue. Could you provide the steps to repro? And share your debug log? resource "google_compute_ha_vpn_gateway" "ha_gateway1" {
region = "us-central1"
name = "issue14264"
network = google_compute_network.network1.id
stack_type = "IPV4_IPV6"
}
resource "google_compute_network" "network1" {
name = "issue14264"
auto_create_subnetworks = false
}
resource "google_compute_ha_vpn_gateway" "ha_gateway2" {
region = "us-central1"
name = "issue14264-2"
network = google_compute_network.network1.id
stack_type = "IPV4_ONLY"
} |
@edwardmedia I can't confirm it's the exact issue we're seeing but all the symptoms are there. In our case the VPNs are deployed with 0.12.24 and the plan shows all the VPNs and the gateways being replaced when trying with 0.13.7 |
I can confirm that I don't see the gateways and VPNs being replaced if I hard code my provider version to before v4.61.0. |
This resource does not have an update method in the API, so any changes require recreating the resource. Specifying a field that was previously unspecified is a change from Terraform's perspective. |
Can confirm we had the same issue as #14203, where this new value was seen as a net new by Terraform and wanted to recreate:
|
@trodge we may want to cherrypick this one to Monday's release, it's a perma-destroy: https://github.com/hashicorp/terraform-provider-google/wiki/Release-Process#when-to-cherry-pick |
@rileykarson / @trodge is there any reason this was not included in yesterdays 4.62 release? We are using this resource a lot, and we currently need to nail our provider version to <=4.60 to prevent a lot of infrastructure recreation. |
None I'm aware of. FYI @trodge, also FYI @SarahFrench as current BOD (we made https://github.com/hashicorp/terraform-provider-google/releases/tag/v4.60.1 based on a similar issue) |
Thanks a lot! :) |
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. |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
If this is a bug report (for when something is there, but doesn't work how it should), please use the bug issue template instead.
If this is an enhancement / feature request (for when something (a resource, field, etc.) is missing, and should be added), please use the enhancement template instead.
If you have a support request or question, please check out the other resources listed here.
If your issue does not fit into one of the above templates, please fill out the following:
Community Note
Terraform Version
All terraform versions
Google provider version : 4.61.0
Affected Resource(s)
google_compute_ha_vpn_gateway
Terraform Configuration Files (if applicable)
Issue Description
No matter which
stack_type
we put it force gateway replacement so tunnels too.Important Factoids
References
The text was updated successfully, but these errors were encountered: