hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.04k stars 9.47k forks source link

Terraform crashed when run apply (tectonic deployment) #23605

Closed dhanubiarca closed 4 years ago

dhanubiarca commented 6 years ago

crash.log Hi All,

I am new to Tectonic, I am trying to deploy tectonics on VMware environment, but could not succeed.

with little modifications in the provider files, I could able to run Plan, when run apply, terraform is getting crashed. I have followed the below link: https://coreos.com/tectonic/docs/latest/install/vmware/vmware-terraform.html

Here I am attaching the crash log, terraform.tfvar, provider.tf, varibale.tf files. I am using terraform version v0.11.3 could someone help me in resolving the issue.

below is the crash output.

Tectonic_VMWARE.zip Tectonic_VMWARE.zip

!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 Terraform1 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.

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! root@ubuntuvm:~/tec_vm2/tectonic_1.8.4-tectonic.3/build/bcluster# terraform --version Terraform v0.11.3

root@ubuntuvm:~/tec_vm2/tectonic_1.8.4-tectonic.3/build/bcluster#

jbardin commented 6 years ago

Adding the relevant portion of the logs:

panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 162 [running]:
github.com/terraform-providers/terraform-provider-tls/tls.CreateCertRequest(0xc42018efc0, 0x0, 0x0, 0x24, 0xf845a0)
    /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-tls/tls/resource_cert_request.go:85 +0x9e3
github.com/terraform-providers/terraform-provider-tls/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc4202147e0, 0xc420288af0, 0xc4201ed4a0, 0x0, 0x0, 0x1, 0xc420290f90, 0xc420290f90)
    /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-tls/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:193 +0x3b6
github.com/terraform-providers/terraform-provider-tls/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc420079810, 0xc420288aa0, 0xc420288af0, 0xc4201ed4a0, 0x7f7cbbc41000, 0x0, 0x6ce6047c64b15e7b)
    /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-tls/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:259 +0xa4
github.com/terraform-providers/terraform-provider-tls/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc420298800, 0xc4201ed420, 0xc420382bc0, 0x0, 0x0)
    /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-tls/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:488 +0x57
reflect.Value.call(0xc42004dce0, 0xc4202c2390, 0x13, 0xb41a44, 0x4, 0xc42034bf20, 0x3, 0x3, 0x6d41f2652385cd77, 0x81325a28f4a4d68f, ...)
    /usr/local/go/src/reflect/value.go:434 +0x906
reflect.Value.Call(0xc42004dce0, 0xc4202c2390, 0x13, 0xc4203d1f20, 0x3, 0x3, 0xafd6fe2d87e9c5ec, 0x7bd3121aa6caf206, 0x5c4ed4ac24b6f1ed)
    /usr/local/go/src/reflect/value.go:302 +0xa4
net/rpc.(*service).call(0xc42046a780, 0xc420064f00, 0xc420236858, 0xc42006e380, 0xc4202b73a0, 0xa21b40, 0xc4201ed420, 0x16, 0xa21b80, 0xc420382bc0, ...)
    /usr/local/go/src/net/rpc/server.go:381 +0x142
ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-tls#65 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-tls#65.

ghost commented 4 years ago

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.