Skip to content

Instantly share code, notes, and snippets.

@SuperMatt
Created November 8, 2016 15:42
Show Gist options
  • Save SuperMatt/c73e7809afe3a993f064ea8db6125f09 to your computer and use it in GitHub Desktop.
Save SuperMatt/c73e7809afe3a993f064ea8db6125f09 to your computer and use it in GitHub Desktop.
data.terraform_remote_state.generic_vmware: Refreshing state...
vsphere_virtual_disk.disk: Creating...
adapter_type: "" => "ide"
datacenter: "" => "Athena-Dev"
datastore: "" => "OPS_ESX_VMFS108"
size: "" => "15"
type: "" => "thin"
vmdk_path: "" => "maa62-test-mysql.vmdk"
Error applying plan:
1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
panic: runtime error: invalid memory address or nil pointer dereference
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: [signal SIGSEGV: segmentation violation code=0x1 addr=0xa0 pc=0x23596af]
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9:
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: goroutine 70 [running]:
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: panic(0x2a24da0, 0xc420010050)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /usr/local/go/src/runtime/panic.go:500 +0x1a1
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task.(*taskCallback).fn(0xc420207880, 0x0, 0x0, 0x0, 0x0)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task/wait.go:73 +0x29f
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task.(*taskCallback).(github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task.fn)-fm(0x0, 0x0, 0x0, 0x0)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task/wait.go:120 +0x48
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/property.waitLoop(0x4787380, 0xc4201aa420, 0xc4203c5020, 0xc4204ed4c8, 0x0, 0x0)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/property/wait.go:140 +0x1b1
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/property.Wait(0x4787380, 0xc4201aa420, 0xc4204ed570, 0xc42041d3c8, 0x4, 0xc42041d440, 0x9, 0xc42041d4c0, 0x1, 0x1, ...)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/property/wait.go:67 +0x2eb
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task.Wait(0x4787380, 0xc4201aa420, 0xc42041d3c8, 0x4, 0xc42041d440, 0x9, 0xc4204ed570, 0x0, 0x0, 0x0, ...)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/task/wait.go:120 +0x152
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/object.(*Task).WaitForResult(0xc4203ff320, 0x4787380, 0xc4201aa420, 0x0, 0x0, 0x4787380, 0xc4201aa420, 0xc4203c4750)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/vendor/github.com/vmware/govmomi/object/task.go:51 +0x137
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/builtin/providers/vsphere.createHardDisk(0xc420488840, 0xf, 0xc4203c4750, 0x27, 0xc4204893b4, 0x4, 0xc4204893b8, 0x3, 0xc420489400, 0xa, ...)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/builtin/providers/vsphere/resource_vsphere_virtual_disk.go:286 +0x42b
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/builtin/providers/vsphere.resourceVSphereVirtualDiskCreate(0xc4204447e0, 0x2f8e740, 0xc420488840, 0x2aad440, 0x414d94)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/builtin/providers/vsphere/resource_vsphere_virtual_disk.go:131 +0x5ac
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc4203d5980, 0xc4202b5db0, 0xc42048f1a0, 0x2f8e740, 0xc420488840, 0x1, 0xc42043de30, 0x0)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/helper/schema/resource.go:162 +0x30e
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc42043cc00, 0xc4202b5d60, 0xc4202b5db0, 0xc42048f1a0, 0x0, 0x18, 0x18)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/helper/schema/provider.go:178 +0x9b
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc420403940, 0xc42048ec80, 0xc420489460, 0x0, 0x0)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /home/user/Code/go/src/github.com/hashicorp/terraform/plugin/resource_provider.go:460 +0x57
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: reflect.Value.call(0xc4202c6420, 0xc420029778, 0x13, 0x300bd9b, 0x4, 0xc4204edeb0, 0x3, 0x3, 0x478a700, 0xc4203c21a0, ...)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /usr/local/go/src/reflect/value.go:434 +0x5c8
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: reflect.Value.Call(0xc4202c6420, 0xc420029778, 0x13, 0xc4204edeb0, 0x3, 0x3, 0x0, 0xc4203d5ce0, 0x4d5fd4)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /usr/local/go/src/reflect/value.go:302 +0xa4
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: net/rpc.(*service).call(0xc4204407c0, 0xc420440780, 0xc42040ba28, 0xc4203d8b00, 0xc42042cd40, 0x2771ac0, 0xc42048ec80, 0x16, 0x2771b00, 0xc420489460, ...)
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /usr/local/go/src/net/rpc/server.go:383 +0x148
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: created by net/rpc.(*Server).ServeCodec
2016/11/08 15:40:29 [DEBUG] plugin: terraform0.7.9: /usr/local/go/src/net/rpc/server.go:477 +0x421
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalWriteState
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalApplyProvisioners
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalIf
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalWriteState
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalWriteDiff
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalApplyPost
2016/11/08 15:40:29 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [ERROR] root: eval: *terraform.EvalOpFilter, err: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [TRACE] [walkApply] Exiting eval tree: vsphere_virtual_disk.disk
2016/11/08 15:40:29 [DEBUG] vertex "output.diskname", got dep: "vsphere_virtual_disk.disk"
2016/11/08 15:40:29 [DEBUG] vertex "root", got dep: "output.diskname"
2016/11/08 15:40:29 [DEBUG] vertex "root", got dep: "var.etcd_username"
2016/11/08 15:40:29 [DEBUG] vertex "root", got dep: "provider.terraform"
2016/11/08 15:40:29 [DEBUG] vertex "provider.vsphere (close)", got dep: "vsphere_virtual_disk.disk"
2016/11/08 15:40:29 [DEBUG] vertex "root", got dep: "provider.vsphere (close)"
2016/11/08 15:40:29 [ERROR] No DOT origin nodes found.
Graph: meta.count-boundary (count boundary fixup)
output.diskname
var.etcd_password
var.etcd_target
var.etcd_username
var.terraform_state_file
output.diskname
vsphere_virtual_disk.disk
provider.vsphere
var.dc
var.vcenter_password
var.vcenter_server
var.vcenter_username
var.datacenter
var.dc
var.etcd_password
var.etcd_target
var.etcd_username
var.name
var.size
var.terraform_state_file
var.type
var.types
var.vcenter_datastore
var.vcenter_password
var.vcenter_server
var.vcenter_username
vsphere_virtual_disk.disk
provider.vsphere
var.datacenter
var.name
var.size
var.type
var.types
var.vcenter_datastore
2016/11/08 15:40:29 [INFO] Starting shadow graph walk: walkApply
2016/11/08 15:40:29 [DEBUG] Waiting for shadow graph to complete...
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.vcenter_server': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.types': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.terraform_state_file': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.vcenter_password': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.size': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.name': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.vcenter_datastore': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.datacenter': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.etcd_target': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.etcd_username': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.vcenter_username': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.type': walking
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "var.type"
2016/11/08 15:40:29 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "var.terraform_state_file"
2016/11/08 15:40:29 [DEBUG] vertex "provider.vsphere", got dep: "var.vcenter_password"
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.etcd_password': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.var.dc': walking
2016/11/08 15:40:29 [DEBUG] vertex "provider.vsphere", got dep: "var.dc"
2016/11/08 15:40:29 [DEBUG] vertex "provider.vsphere", got dep: "var.vcenter_server"
2016/11/08 15:40:29 [DEBUG] vertex "provider.vsphere", got dep: "var.vcenter_username"
2016/11/08 15:40:29 [DEBUG] vertex 'root.provider.vsphere': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.provider.vsphere': evaluating
2016/11/08 15:40:29 [TRACE] [walkApply] Entering eval tree: provider.vsphere
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalSequence
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalInitProvider
2016/11/08 15:40:29 [DEBUG] root: eval: terraform.EvalNoop
2016/11/08 15:40:29 [DEBUG] root: eval: terraform.EvalNoop
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalOpFilter
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalSequence
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalGetProvider
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalInterpolate
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalBuildProviderConfig
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalSetProviderConfig
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalOpFilter
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalSequence
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalConfigProvider
2016/11/08 15:40:29 [TRACE] [walkApply] Exiting eval tree: provider.vsphere
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "provider.vsphere"
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "var.size"
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "var.name"
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "var.datacenter"
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "var.vcenter_datastore"
2016/11/08 15:40:29 [DEBUG] vertex "vsphere_virtual_disk.disk", got dep: "var.types"
2016/11/08 15:40:29 [DEBUG] vertex 'root.vsphere_virtual_disk.disk': walking
2016/11/08 15:40:29 [DEBUG] vertex 'root.vsphere_virtual_disk.disk': evaluating
2016/11/08 15:40:29 [TRACE] [walkApply] Entering eval tree: vsphere_virtual_disk.disk
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalSequence
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalInstanceInfo
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalReadDiff
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalIf
2016/11/08 15:40:29 [DEBUG] root: eval: terraform.EvalNoop
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalIf
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalInterpolate
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalGetProvider
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalReadState
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalValidateResource
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalDiff
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalReadDiff
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalCompareDiff
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalGetProvider
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalReadState
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalApply
2016/11/08 15:40:29 [DEBUG] apply: vsphere_virtual_disk.disk: executing Apply
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalWriteState
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalApplyProvisioners
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalIf
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalWriteState
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalWriteDiff
2016/11/08 15:40:29 [DEBUG] root: eval: *terraform.EvalApplyPost
2016/11/08 15:40:29 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [TRACE] [walkApply] Exiting eval tree: vsphere_virtual_disk.disk
2016/11/08 15:40:29 [DEBUG] vertex "output.diskname", got dep: "vsphere_virtual_disk.disk"
2016/11/08 15:40:29 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "output.diskname"
2016/11/08 15:40:29 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "var.etcd_target"
2016/11/08 15:40:29 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "var.etcd_username"
2016/11/08 15:40:29 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "var.etcd_password"
2016/11/08 15:40:29 [ERROR] Shadow graph error: 1 error(s) occurred:
* vsphere_virtual_disk.disk: unexpected EOF
2016/11/08 15:40:29 [DEBUG] plugin: /home/user/bin/terraform0.7.9: plugin process exited
2016/11/08 15:40:29 [TRACE] Preserving existing state lineage "260c1a08-2896-4768-89f1-0b3fb44ba689"
2016/11/08 15:40:29 [TRACE] Preserving existing state lineage "260c1a08-2896-4768-89f1-0b3fb44ba689"
2016/11/08 15:40:29 [DEBUG] plugin: /home/user/bin/terraform0.7.9: plugin process exited
2016/11/08 15:40:29 [DEBUG] plugin: waiting for all plugin processes to complete...
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment