-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/google incorrect update order between instance template and group manager #11905
Comments
It seems as this is an issue with Any ideas how to fix this? |
I think it is still an issue even without |
I am also still running into this issue with v0.11.10 |
Resolved by hashicorp/terraform-provider-google#1601:
|
The required debug outputs for hashicorp/terraform-provider-google#1448 This issue is still there in Terraform v0.11.10. I tried all the possible options stated above. Additionally What I want to add is, After the failure, when I re-run the 'terraform apply' for the second time it successfully passed. My guess is that, Terarform is trying to destroy the old resource a little too quicker, before the Google's API is gets updated with then new instance template. If the destruction of the 'create_before_destroy' can be delayed by few seconds, we might be able to avoid this. Error output:
Here is the output when I re-run it. Can clearly see that the new template is refreshed. At the end it the old one gets destroyed.
|
I'm also seeing this problem with terraform 0.11.13 and provider.google v2.11.0 |
Hello! 🤖 This issue relates to an older version of Terraform that is no longer in active development, and because the area of Terraform it relates to has changed significantly since the issue was opened we suspect that the issue is either fixed or that the circumstances around it have changed enough that we'd need an updated issue report in order to reproduce and address it. If you're still seeing this or a similar issue in the latest version of Terraform, please do feel free to open a new bug report! Please be sure to include all of the information requested in the template, even if it might seem redundant with the information already shared in this issue, because the internal details relating to this problem are likely to be different in the current version of Terraform. Thanks! |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform v0.8.6
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Terraform plan
Expected Behavior
The group_manager gets updated to use the new template, then the old template gets deleted
Actual Behavior
It tries to delete the template first, which subsequently fails with
google_compute_instance_template.consul.0 (deposed #0): Error deleting instance template: googleapi: Error 400: The instance_template resource 'consul-europe-west1-001e39d3e89692fb74c75a96e8' is already being used by 'consul-europe-west1', resourceInUseByAnotherResource
Steps to Reproduce
The text was updated successfully, but these errors were encountered: