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

Unnecessary check in resourceComputeInstanceRead #141

Closed
maikzumstrull opened this issue Jun 19, 2017 · 3 comments · Fixed by #600
Closed

Unnecessary check in resourceComputeInstanceRead #141

maikzumstrull opened this issue Jun 19, 2017 · 3 comments · Fixed by #600
Assignees
Labels

Comments

@maikzumstrull
Copy link

Terraform Version

0.9.8

Affected Resource(s)

google_compute_instance

Expected Behavior

Terraform should notice that different disks are attached to an instance than it expects. It should be possible to ignore this condition with lifecycle/ignore_changes.

Actual Behavior

Terraform errors out trying to refresh the instance.

As far as I can tell, this check: https://github.com/terraform-providers/terraform-provider-google/blob/master/google/resource_compute_instance.go#L852-L854 is simply not necessary. In any case, the result should be a resource specification that TF can diff, not error on refresh.

@danawillow
Copy link
Contributor

Hey @maikzumstrull, thanks for the report. I'm doing some large changes around the way we handle disks right now (see #122 and #123 for an idea of where we're headed) and that got check got caught up in the middle of them. I'm going to focus my efforts on the larger change rather than trying to fix this check specifically, but I appreciate the report!

@maikzumstrull
Copy link
Author

The problematic code has moved around a bit, but it's still in there and still breaks operations really badly (because Terraform errors out instead of just reporting "this instance looks different than expected" and considering that in the plan). This also causes #355.

@danawillow danawillow self-assigned this Oct 3, 2017
@danawillow danawillow added the bug label Oct 3, 2017
luis-silva pushed a commit to luis-silva/terraform-provider-google that referenced this issue May 21, 2019
@ghost
Copy link

ghost commented Mar 30, 2020

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants