You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR; Maybe we need polling to wait after the instance_template gets updated in google_compute_region_instance_group_manager before attempting to destroy the former instance_template?
debug logs forthcoming, Need to scrub and encrypt. Will update.
TBD - debug logs forthcoming, Need to scrub and encrypt. Will update.
Panic Output
No panic
Expected Behavior
On making an update that would trigger creation of a new instance_template, expectation is that
a) new instance_template is created,
b) google_compute_region_instance_group_manager now points at new instance_templates and
c) former instance template is destroyed.
Actual Behavior
What actually happened?
Perform an action that triggers the creation of a new instance_template,
a) new instance_template gets created,
b) region_instance_group_manager gets updated with new template , and
c) old template delete gets sent, but does not occur in first run.
terraform apply errors out with:
* module.instance_template.google_compute_instance_template.instance_template (destroy): 1 error(s) occurred:
* google_compute_instance_template.instance_template (deposed #0): 1 error(s) occurred:
* google_compute_instance_template.instance_template (deposed #0): Error deleting instance template: googleapi: Error 400: The instance_template resource 'projects/customer-unit-metadata-dev/global/instanceTempl
ates/terraform-20180508013337823400000001' is already being used by 'projects/customer-unit-metadata-dev/regions/us-west1/instanceGroupManagers/emalloy-internal-mig', resourceInUseByAnotherResource
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
On an already deployed instance_group_manager and instance_template
update some template value, such as image, or anything that could cause the instance_template to force a new resource (i.e. metadata, templates, instance_type, etc)
terraform plan
terraform apply
Important Factoids
We are passing the instance_template.self_link as an output from one self-contained module to another module (the regional_instance_group_manager)
References
The text was updated successfully, but these errors were encountered:
Sorry for the delay on reply here - I'm closing due to lack of access to this particular scenario. I will give it another go another time, and if I can still replicate the issue, will post a new 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.
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
locked and limited conversation to collaborators
Nov 18, 2018
google_compute_region_instance_group_manager rolling_update instance_template resourceInUseByAnotherResource
TLDR; Maybe we need polling to wait after the instance_template gets updated in
google_compute_region_instance_group_manager
before attempting to destroy the former instance_template?debug logs forthcoming, Need to scrub and encrypt. Will update.
Terraform Version
Affected Resource(s)
google_compute_region_instance_group_manager
google_compute_instance_template
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
a lot of cruft redacted for simplicity
instance_template
module - outputsinstance_template
module chunk (from module) (note thecreate_before_destroy
)Debug Output
TBD - debug logs forthcoming, Need to scrub and encrypt. Will update.
Panic Output
No panic
Expected Behavior
On making an update that would trigger creation of a new
instance_template
, expectation is thata) new
instance_template
is created,b)
google_compute_region_instance_group_manager
now points at new instance_templates andc) former instance template is destroyed.
Actual Behavior
What actually happened?
Perform an action that triggers the creation of a new instance_template,
a) new instance_template gets created,
b) region_instance_group_manager gets updated with new template , and
c) old template delete gets sent, but does not occur in first run.
terraform apply
errors out with:Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
On an already deployed instance_group_manager and instance_template
terraform plan
terraform apply
Important Factoids
We are passing the
instance_template.self_link
as an output from one self-contained module to another module (the regional_instance_group_manager)References
The text was updated successfully, but these errors were encountered: