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.53k stars 9.52k forks source link

TERRAFORM CRASH- While deploying a VM in Standalone VMware ESXi 6.5.0 #26603

Closed arun12nura closed 4 years ago

arun12nura commented 4 years ago

Terraform Config.txt

ENTIRE ISSUE - CRASH FILE is attached!!!

For some of my queries I am getting the following panic:

2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: goroutine 13 [running]: 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: github.com/hashicorp/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachineCreateBare(0xc0005165b0, 0x14796a0, 0xc00008ac40, 0x13e8220, 0xc000779960, 0x0) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:1215 +0xebe 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: github.com/hashicorp/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachineCreate(0xc0005165b0, 0x14796a0, 0xc00008ac40, 0x2, 0x273d200) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:327 +0xa2e 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(Resource).Apply(0xc00018fb00, 0xc00082c0a0, 0xc00081b220, 0x14796a0, 0xc00008ac40, 0x14aee01, 0xc0003646b8, 0xc0004e91d0) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:305 +0x36c 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(Provider).Apply(0xc00009cf80, 0xc00023d8e0, 0xc00082c0a0, 0xc00081b220, 0xc00043d4c8, 0xc00051e2a0, 0x14b0ca0) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/provider.go:294 +0xa0 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(GRPCProviderServer).ApplyResourceChange(0xc000006630, 0x1b366a0, 0xc0002841b0, 0xc000230120, 0xc000006630, 0x0, 0xc00024fa48) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin/grpc_provider.go:885 +0x8bb 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x173c4c0, 0xc000006630, 0x1b366a0, 0xc0002841b0, 0xc0002300c0, 0x0, 0x1b366a0, 0xc0002841b0, 0xc0007a9900, 0x1046) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5/tfplugin5.pb.go:3189 +0x21e 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: google.golang.org/grpc.(Server).processUnaryRPC(0xc000406160, 0x1b43480, 0xc000047c80, 0xc0007b6100, 0xc0003f8210, 0x2700e80, 0x0, 0x0, 0x0) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:995 +0x467 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: google.golang.org/grpc.(Server).handleStream(0xc000406160, 0x1b43480, 0xc000047c80, 0xc0007b6100, 0x0) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:1275 +0xd44 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: google.golang.org/grpc.(Server).serveStreams.func1.1(0xc000030270, 0xc000406160, 0x1b43480, 0xc000047c80, 0xc0007b6100) 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:710 +0xa8 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: created by google.golang.org/grpc.(Server).serveStreams.func1 2020-10-16T01:17:58.501+0530 [DEBUG] plugin.terraform-provider-vsphere_v1.24.1_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:708 +0xa8 2020/10/16 01:17:58 [DEBUG] vsphere_virtual_machine.test2: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalMaybeTainted 2020/10/16 01:17:58 [TRACE] EvalMaybeTainted: vsphere_virtual_machine.test2 encountered an error during creation, so it is now marked as tainted 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalWriteState 2020/10/16 01:17:58 [TRACE] EvalWriteState: removing state object for vsphere_virtual_machine.test2 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalApplyProvisioners 2020/10/16 01:17:58 [TRACE] EvalApplyProvisioners: vsphere_virtual_machine.test2 has no state, so skipping provisioners 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalMaybeTainted 2020/10/16 01:17:58 [TRACE] EvalMaybeTainted: vsphere_virtual_machine.test2 encountered an error during creation, so it is now marked as tainted 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalWriteState 2020/10/16 01:17:58 [TRACE] EvalWriteState: removing state object for vsphere_virtual_machine.test2 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalIf 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalIf 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalWriteDiff 2020/10/16 01:17:58 [TRACE] eval: terraform.EvalApplyPost 2020/10/16 01:17:58 [ERROR] eval: terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing 2020/10/16 01:17:58 [ERROR] eval: terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/10/16 01:17:58 [TRACE] [walkApply] Exiting eval tree: vsphere_virtual_machine.test2 2020/10/16 01:17:58 [TRACE] vertex "vsphere_virtual_machine.test2": visit complete 2020/10/16 01:17:58 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping 2020/10/16 01:17:58 [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/hashicorp/vsphere\"] (close)" errored, so skipping 2020/10/16 01:17:58 [TRACE] dag/walk: upstream of "root" errored, so skipping 2020/10/16 01:17:58 [TRACE] statemgr.Filesystem: not making a backup, because the new snapshot is identical to the old 2020/10/16 01:17:58 [TRACE] statemgr.Filesystem: no state changes since last snapshot 2020/10/16 01:17:58 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate 2020-10-16T01:17:58.513+0530 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.1/windows_amd64/terraform-provider-vsphere_v1.24.1_x4.exe pid=20624 error="exit status 2" 2020/10/16 01:17:58 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info 2020/10/16 01:17:58 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate 2020-10-16T01:17:58.528+0530 [DEBUG] plugin: plugin exited

Terraform Version v0.13.4

Panic Output https://github.com/hashicorp/terraform/files/5387419/Terraform.Config.txt

Expected Behavior A plan

Actual Behavior A crash

ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-vsphere#1236 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-vsphere#1236.

ghost commented 3 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.