-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
crash from null nested blocks when included in ignore_changes
#32310
Comments
Thanks for the bug report. Please provide some Terraform configuration that reproduces this issue, and/or a debug log. It's possible this is an issue with the Kubernetes provider, so you may want to open a bug report there: https://github.com/hashicorp/terraform-provider-kubernetes This issue looks similar, though without narrowing down which resource causes your crash, it's hard to tell. hashicorp/terraform-provider-kubernetes#1552 |
Yes, the configuration will be important here, because the crash happens when handling the configuration value in Terraform. I suspect there is an Thanks! |
Thanks! This is from a complex system that I manage for my so it will take some time before I create a case that works in isolation. Once I have it isolated and reproducible I will update this item or if it is closed I will open a new issue. The issue is intermittent but it does happen with some regularity. I think if I spend a bit of time I can create a reproducible situation. I think is the cause is the following TF where when the value of My workaround is to delete the job and then allow terraform to recreate it.
|
Thanks @farnsworth2008, I think the |
ignore_changes
combining with #31536 |
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. |
Terraform Version
Terraform Configuration Files
Debug Output
N/A
Expected Behavior
Terraform should not crash. The job should be replaced
Actual Behavior
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
Please report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version, the stack trace
shown below, and any additional information which may help replicate the issue.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
value is null
goroutine 3646 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x19
github.com/hashicorp/terraform/internal/logging.PanicHandler()
/home/circleci/project/project/internal/logging/panic.go:55 +0x153
panic({0x2144f60, 0x2b44e90})
/usr/local/go/src/runtime/panic.go:884 +0x212
github.com/zclconf/go-cty/cty.Value.LengthInt({{{0x2b6dbb0?, 0xc002a60b60?}}, {0x0?, 0x0?}})
/home/circleci/go/pkg/mod/github.com/zclconf/[email protected]/cty/value_ops.go:1066 +0x1e5
github.com/hashicorp/terraform/internal/plans/objchange.assertPlanValid(0xc001f60320, {{{0x2b6dc20?, 0xc003f3afc0?}}, {0x221c7a0?, 0xc006ea5ec0?}}, {{{0x2b6dc20?, 0xc003ea9810?}}, {0x221c7a0?, 0xc006ea4480?}}, {{{0x2b6dc20, ...}}, ...}, ...)
/home/circleci/project/project/internal/plans/objchange/plan_valid.go:105 +0x9e5
github.com/hashicorp/terraform/internal/plans/objchange.assertPlanValid(0xc001f602d0, {{{0x2b6dc20?, 0xc003f3b010?}}, {0x221c7a0?, 0xc006ea5f20?}}, {{{0x2b6dc20?, 0xc003ea9880?}}, {0x221c7a0?, 0xc006ea44e0?}}, {{{0x2b6dc20, ...}}, ...}, ...)
/home/circleci/project/project/internal/plans/objchange/plan_valid.go:127 +0x2eb8
github.com/hashicorp/terraform/internal/plans/objchange.assertPlanValid(0xc001f41a10, {{{0x2b6dc20?, 0xc003f3b110?}}, {0x221c7a0?, 0xc006efa000?}}, {{{0x2b6dc20?, 0xc003ea9920?}}, {0x221c7a0?, 0xc006ea45a0?}}, {{{0x2b6dc20, ...}}, ...}, ...)
/home/circleci/project/project/internal/plans/objchange/plan_valid.go:127 +0x2eb8
github.com/hashicorp/terraform/internal/plans/objchange.AssertPlanValid(...)
/home/circleci/project/project/internal/plans/objchange/plan_valid.go:36
github.com/hashicorp/terraform/internal/terraform.(*NodeAbstractResourceInstance).plan(0xc002616000, {0x2b84098, 0xc0019660e0}, 0x0, 0xc002fabda0, 0x0, {0x0, 0x0, 0x0?})
/home/circleci/project/project/internal/terraform/node_resource_abstract_instance.go:857 +0x19fe
github.com/hashicorp/terraform/internal/terraform.(*NodePlannableResourceInstance).managedResourceExecute(0xc0025eedc0, {0x2b84098, 0xc0019660e0})
/home/circleci/project/project/internal/terraform/node_resource_plan_instance.go:223 +0xdae
github.com/hashicorp/terraform/internal/terraform.(*NodePlannableResourceInstance).Execute(0x0?, {0x2b84098?, 0xc0019660e0?}, 0x0?)
/home/circleci/project/project/internal/terraform/node_resource_plan_instance.go:60 +0x90
github.com/hashicorp/terraform/internal/terraform.(*ContextGraphWalker).Execute(0xc0033dd1d0, {0x2b84098, 0xc0019660e0}, {0x7f5d5c0d2ab8, 0xc0025eedc0})
/home/circleci/project/project/internal/terraform/graph_walk_context.go:136 +0xc2
github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1({0x256cb40, 0xc0025eedc0})
/home/circleci/project/project/internal/terraform/graph.go:74 +0x2f0
github.com/hashicorp/terraform/internal/dag.(*Walker).walkVertex(0xc000d41ce0, {0x256cb40, 0xc0025eedc0}, 0xc0025ef100)
/home/circleci/project/project/internal/dag/walk.go:381 +0x2f6
created by github.com/hashicorp/terraform/internal/dag.(*Walker).Update
/home/circleci/project/project/internal/dag/walk.go:304 +0xf65
Steps to Reproduce
This crash occurs at random times when replacing k8 jobs
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: