When I run terraform (including the marathon provider plugin) plan against an existing state, the following error occurs:
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
marathon_app.my_app: Refreshing state... (ID: /teststra...egy-core)
panic: empty structure "ports." has entry "ports.0"
goroutine 647 [running]:
github.com/hashicorp/terraform/terraform.(*InstanceState).MergeDiff(0xc420221d60, 0xc42030bae0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/state.go:1713 +0x5a8
github.com/hashicorp/terraform/terraform.(*EvalDiff).Eval(0xc420b06000, 0x740d2c0, 0xc420344620, 0x2, 0x2, 0x4c582eb, 0x4)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_diff.go:176 +0x481
github.com/hashicorp/terraform/terraform.EvalRaw(0x73dae60, 0xc420b06000, 0x740d2c0, 0xc420344620, 0x48b8d80, 0xc420221d60, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:53 +0x175
github.com/hashicorp/terraform/terraform.(*EvalSequence).Eval(0xc4205be4a0, 0x740d2c0, 0xc420344620, 0x2, 0x2, 0x4c582eb, 0x4)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval_sequence.go:14 +0xc1
github.com/hashicorp/terraform/terraform.EvalRaw(0x73db420, 0xc4205be4a0, 0x740d2c0, 0xc420344620, 0x42d9bc0, 0xc420b1c5aa, 0x4050660, 0xc420b1c650)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:53 +0x175
github.com/hashicorp/terraform/terraform.Eval(0x73db420, 0xc4205be4a0, 0x740d2c0, 0xc420344620, 0xc4205be4a0, 0x73db420, 0xc4205be4a0, 0x200000003)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/eval.go:34 +0x4d
github.com/hashicorp/terraform/terraform.(*Graph).walk.func1(0x4a97120, 0xc420af40c8, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/graph.go:126 +0xd4d
github.com/hashicorp/terraform/dag.(*Walker).walkVertex(0xc420266690, 0x4a97120, 0xc420af40c8, 0xc420afb240)
/opt/gopath/src/github.com/hashicorp/terraform/dag/walk.go:387 +0x392
created by github.com/hashicorp/terraform/dag.(*Walker).Update
/opt/gopath/src/github.com/hashicorp/terraform/dag/walk.go:310 +0x9ca
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
I open the issue here instead of the terraform repository as I assume this bug is issued by the marathon plugin. It seems like the port definitions generated by this plugin is not correctly interpreted later once the state is read.
When I run terraform (including the marathon provider plugin) plan against an existing state, the following error occurs:
The related resource:
State file:
I open the issue here instead of the terraform repository as I assume this bug is issued by the marathon plugin. It seems like the port definitions generated by this plugin is not correctly interpreted later once the state is read.
Versions: