-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
0.12-rc1 crashes on Terraform apply when specifying input plan #21258
Comments
Hi @tuckerwales, Thanks for filing the issue! Wold it be possible to provide some configuration that demonstrates how you arrived at this error? |
@jbardin no problem, What kind of config are you looking for? We're using modules to import quite a lot of config so it's probably infeasible to include all of that. |
It would be nice if we could reduce it to a manageable size, but I understand that's not simple when there's a lot of configuration to work with. We may still be able to get enough info without it. Would it be possible to provide the log output with Was this an apply from scratch, or was this after modifying an existing state? Does the exact same operation work if you apply directly without saving the plan? Thanks! |
Given the location of this panic... terraform/terraform/node_resource_apply_instance.go Lines 110 to 118 in 00cc578
It looks like we somehow ended up with a graph node with no configuration attached. Because plan and apply both use the same configuration by definition (the configuration is in the plan file), that is unexpected, and so I think as @jbardin said at least a more complete trace log could be helpful to see why that might be. Any additional context would be very helpful too. |
Oddly enough, I just tried to get you more information and it seems to have started working. I @jbardin this was an apply after modifying state. And yes, it worked when applying - that's how I got around the problem originally. Sorry I can't offer any more information or logs. |
Thanks for following up, @tuckerwales! Since we don't have a clear reproduction process for this, we're going to address it for now by adding an explicit check prior to the line where the panic originated so that we can at least fail gracefully in this weird edge-case. If it crops up again then we'll dig further and try to get to the bottom of it. Thanks again for reporting it! |
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
Crash Output
Expected Behavior
For the plan to be applied.
Actual Behavior
The Terraform CLI crashes
Steps to Reproduce
terraform plan -out=terraform.plan
terraform apply terraform.plan
The text was updated successfully, but these errors were encountered: