Skip to content
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

Terraform destroy fails when GCP disk used by multiple instances #20963

Closed
honnibal opened this issue Apr 9, 2019 · 2 comments
Closed

Terraform destroy fails when GCP disk used by multiple instances #20963

honnibal opened this issue Apr 9, 2019 · 2 comments

Comments

@honnibal
Copy link

honnibal commented Apr 9, 2019

Re Issue #8667, PR #14651

I have a readonly google_compute_disk that's attached to multiple instances. When I do terraform destroy, I get an Error detaching disk error, noting that an instance was not found. If I run delete a second time, it succeeds.

I'm using v0.11.8.

Further details:

  • The disk is defined in the top-level main.tf
  • The disk is used by an instance template within a managed instance group, within a submodule.
  • In order to pass the disk into the submodule, I pass it by name (since I can't get a reference to the resource in the submodule)
@ghost
Copy link

ghost commented Apr 10, 2019

This issue has been automatically migrated to hashicorp/terraform-provider-google#3410 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-google#3410.

@ghost ghost closed this as completed Apr 10, 2019
@ghost
Copy link

ghost commented Aug 13, 2019

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.

@ghost ghost locked and limited conversation to collaborators Aug 13, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants