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

core: Don't panic if NodeApplyableResourceInstance has no config #21310

Merged
merged 1 commit into from
May 14, 2019

Conversation

apparentlymart
Copy link
Member

This is a "should never happen" case, because we shouldn't ever have resources in the plan that aren't in the configuration, but since we've got a report of a crash here (which went away before we got a chance to debug it) here's just an extra guard to ensure that we'll still exit gracefully in that case.

If we see this error crop up again in future, it'd be nice to gather a full trace log so we can see what GraphNodeAttachResourceConfig did and why it did not attach a configuration.

This closes #21258, but it does not fix it: instead, it hopefully arranges for us to get more information (the resource address, in particular) in a subsequent bug report if this manages to crop up again.

This is a "should never happen" case, because we shouldn't ever have
resources in the plan that aren't in the configuration, but since we've
got a report of a crash here (which went away before we got a chance to
debug it) here's just an extra guard to ensure that we'll still exit
gracefully in that case.

If we see this error crop up again in future, it'd be nice to gather a
full trace log so we can see what GraphNodeAttachResourceConfig did and
why it did not attach a configuration.
@apparentlymart apparentlymart added this to the v0.12.0 milestone May 14, 2019
@apparentlymart apparentlymart requested a review from a team May 14, 2019 23:13
@apparentlymart apparentlymart self-assigned this May 14, 2019
@apparentlymart apparentlymart merged commit bec4641 into master May 14, 2019
@apparentlymart apparentlymart deleted the b-apply-no-config-crash branch July 10, 2019 14:35
@ghost
Copy link

ghost commented Jul 24, 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 Jul 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.12-rc1 crashes on Terraform apply when specifying input plan
2 participants