Closed hashibot closed 7 years ago
This comment was originally posted by @phinze as https://github.com/hashicorp/terraform/issues/5180#issuecomment-186380847. It was migrated here as part of the provider split. The original comment is below.
Thanks for this report @pizzaops. Pulling out the relevant panic backtrace:
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: panic: runtime error: invalid memory address or nil pointer dereference
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: [signal 0xb code=0x1 addr=0x0 pc=0xfd1b9]
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere:
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: goroutine 84 [running]:
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/object.(*Task).WaitForResult(0x0, 0x1eba550, 0xc82005ec90, 0x0, 0x0, 0x49, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/object/task.go:50 +0x39
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/object.(*Task).Wait(0x0, 0x1eba550, 0xc82005ec90, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/object/task.go:45 +0x4d
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/builtin/providers/vsphere.(*virtualMachine).createVirtualMachine(0xc820116120, 0xc8205a12b0, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/builtin/providers/vsphere/resource_vsphere_virtual_machine.go:961 +0x212a
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/builtin/providers/vsphere.resourceVSphereVirtualMachineCreate(0xc820514540, 0xf4c000, 0xc8205a12b0, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/builtin/providers/vsphere/resource_vsphere_virtual_machine.go:399 +0x2865
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc8205b37c0, 0xc820554a80, 0xc8205a1a00, 0xf4c000, 0xc8205a12b0, 0x10101, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/helper/schema/resource.go:145 +0x28e
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc820014ab0, 0xc8200f7340, 0xc820554a80, 0xc8205a1a00, 0x1, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/helper/schema/provider.go:162 +0x1ed
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Apply(0xc8202fed80, 0xc82056d740, 0xc8205a1de0, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /private/tmp/terraform20160217-73210-145j4ow/terraform-0.6.11/src/github.com/hashicorp/terraform/rpc/resource_provider.go:323 +0x76
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: reflect.Value.call(0xbf7300, 0xefeac0, 0x13, 0xf68248, 0x4, 0xc820387ea8, 0x3, 0x3, 0x0, 0x0, ...)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /usr/local/Cellar/go/1.5.3/libexec/src/reflect/value.go:432 +0x120a
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: reflect.Value.Call(0xbf7300, 0xefeac0, 0x13, 0xc820387ea8, 0x3, 0x3, 0x0, 0x0, 0x0)
2016/02/17 16:23:50 [DEBUG] terraform-provider-vsphere: /usr/local/Cellar/go/1.5.3/libexec/src/reflect/value.go:300 +0xb1
Tagging and we'll take a look!
This comment was originally posted by @pizzaops as https://github.com/hashicorp/terraform/issues/5180#issuecomment-186392010. It was migrated here as part of the provider split. The original comment is below.
Sure thing. It's vSphere 5.5 btw.
This comment was originally posted by @pizzaops as https://github.com/hashicorp/terraform/issues/5180#issuecomment-198012266. It was migrated here as part of the provider split. The original comment is below.
Heya @phinze! How are things going on this? Any thoughts on if or when there might be a fix?
At some point I need to learn Go so that I can contribute to this...
This comment was originally posted by @phinze as https://github.com/hashicorp/terraform/issues/5180#issuecomment-200578147. It was migrated here as part of the provider split. The original comment is below.
Hi @pizzaops - my apologies for not getting around to this yet - we're still without an official Terraform vSphere Provider maintainer so vsphere issues are slower going.
Do you still experience this crash on Terraform v0.6.14? Can you also include the config that produces the crash for you?
Hey @pizzaops! Very sorry for the delay here. We have recently merged a update to govmomi that may fix these issues - if you have the capabilities, can you attempt to build a custom provider binary and see if this fixes your issue? If not, we will be releasing a new version next week.
Thanks again and sorry for the delays!
@vancluever I discovered this bug in February 2016 as I was exploring various provisioning tools to see what we might use for vSphere, at a client of an employer I no longer work for.
I have not touched terraform even once since February 2016 :)
Thanks @pizzaops. Sorry you had issues with the tool at the time. :disappointed:
Just a note - I am now the official vSphere provider maintainer that @phinze was referring to - so if you find your way in TF-land again, we are planning on fleshing out the resources offered in the provider and also making sure bugs are addressed in a timely manner.
Take care and thanks for the response!
Highly likely that I'll be in tf land again soon, highly unlikely it'll be with vSphere though. Thanks for all your efforts!
This issue was originally opened by @pizzaops as hashicorp/terraform#5180. It was migrated here as part of the provider split. The original body of the issue is below.
Version Info:
Crash log below: