terraform-providers / terraform-provider-opc

Terraform Oracle Public Cloud provider
https://www.terraform.io/docs/providers/opc/
Mozilla Public License 2.0
29 stars 25 forks source link

Crash - " It would be immensely helpful if you could please report the crash with Terraform[1] so that we can fix this." #137

Closed ghost closed 6 years ago

ghost commented 6 years ago

This issue was originally opened by @amaslows as hashicorp/terraform#18409. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

$ terraform --version Terraform v0.11.7

...

Terraform Configuration Files

hoping the crash log is enough to help you, no urgent issue on my end

...

Debug Output

Crash Output

https://gist.github.com/amaslows/169177fcda9ea13d6f93ca44f8757d65

Expected Behavior

not crash

Actual Behavior

crashed

Steps to Reproduce

  1. terraform init
  2. terraform apply
riselka commented 6 years ago

initial gist truncates, but full file available: https://gist.github.com/amaslows/169177fcda9ea13d6f93ca44f8757d65/raw/7513dbf53b3f66a3cbfa7fc2a5463e17c8c74f6d/crash.log

scross01 commented 6 years ago

Issue occurs during the the CreateOrchestration(). @mbfrahry can you take a look at this.

2018-07-06T16:28:02.526-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: panic: runtime error: invalid memory address or nil pointer dereference
2018-07-06T16:28:02.526-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: [signal 0xc0000005 code=0x0 addr=0x0 pc=0x9a2e7d]
2018-07-06T16:28:02.526-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: 
2018-07-06T16:28:02.526-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: goroutine 223 [running]:
2018-07-06T16:28:02.526-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/go-oracle-terraform/compute.(*OrchestrationsClient).WaitForOrchestrationState(0xc04233d8e0, 0xc04233d4e0, 0x2540be400, 0x1176592e000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
2018-07-06T16:28:02.526-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/go-oracle-terraform/compute/orchestration.go:473 +0x13d
2018-07-06T16:28:02.527-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/go-oracle-terraform/compute.(*OrchestrationsClient).CreateOrchestration(0xc0424718e0, 0xc042530240, 0x1, 0x1, 0x0)
2018-07-06T16:28:02.527-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/go-oracle-terraform/compute/orchestration.go:287 +0x947
2018-07-06T16:28:02.527-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: github.com/terraform-providers/terraform-provider-opc/opc.resourceOPCOrchestratedInstanceCreate(0xc042099260, 0xad7340, 0xc04203a2a0, 0x0, 0xc04208ece8)
2018-07-06T16:28:02.527-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe:   /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-opc/opc/resource_orchestrated_instance.go:88 +0x46c
2018-07-06T16:28:02.527-0500 [DEBUG] plugin.terraform-provider-opc_v1.1.2_x4.exe: github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc0422c12c0, 0xc04233e410, 0xc0422a3c00, 0xad7340, 0xc04203a2a0, 0x1, 0xc042383b90, 0xc0424a5200)
riselka commented 6 years ago

nice work.