Closed pjamelot closed 5 years ago
This issue has been automatically migrated to terraform-providers/terraform-provider-vcd#128 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-vcd#128.
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.
terraform apply "plan"
-bash: terraform: command not found
./terraform apply plan
vcd_vapp_vm.first-terra-vm: Creating... catalog_name: "" => "BigDataReady" cpus: "" => "1" href: "" => ""
initscript: "" => "#!/bin/sh\n\necho echo 'test ok' >> /tmp/test > /tmp/checkOK\n"
ip: "" => ""
memory: "" => "512"
name: "" => "first-terra-vm"
network_name: "" => "EIN_GW01_S1"
power_on: "" => "false"
template_name: "" => "CENTOX7.2-v1.0"
vapp_name: "" => "vApp_test_terraform"
vcd_vapp.vApp_test_terraform: Creating...
description: "" => "terrafrom vapp"
href: "" => ""
ip: "" => ""
name: "" => "vApp_test_terraform"
power_on: "" => "false"
vcd_vapp.vApp_test_terraform: Creation complete after 4s (ID: vApp_test_terraform)
Error: Error applying plan:
1 error(s) occurred:
vcd_vapp_vm.first-terra-vm: 1 error(s) occurred:
vcd_vapp_vm.first-terra-vm: 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 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x9ae805] 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: goroutine 75 [running]: 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/ukcloud/govcloudair.(VApp).AddVM(0xc42043c130, 0xc42008a620, 0xc420230368, 0xc4204be7e0, 0xc420230368, 0xc42000f370, 0xe, 0xc42003cf38, 0x2, 0x2, ...) 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/ukcloud/govcloudair/vapp.go:86 +0x365 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vcd/vcd.resourceVcdVAppVmCreate.func2(0x2) 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vcd/vcd/resource_vcd_vapp_vm.go:159 +0x1e2 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/hashicorp/terraform/helper/resource.Retry.func1(0x0, 0x0, 0x0, 0x0, 0x0, 0x0) 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/hashicorp/terraform/helper/resource/wait.go:22 +0x78 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/hashicorp/terraform/helper/resource.(StateChangeConf).WaitForState.func1(0xc4203be3c0, 0xc4203ce3f0, 0xc4203d05c0, 0xc4203be420, 0xc4204eac68, 0xc4204eac60) 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/hashicorp/terraform/helper/resource/state.go:103 +0x1c8 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: created by github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/hashicorp/terraform/helper/resource.(StateChangeConf).WaitForState 2018-12-10T18:36:47.337+0100 [DEBUG] plugin.terraform-provider-vcd_v1.0.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vcd/vendor/github.com/hashicorp/terraform/helper/resource/state.go:195 +0x249 2018-12-10T18:36:47.338+0100 [DEBUG] plugin: plugin process exited: path=/opt/terraform/.terraform/plugins/linux_amd64/terraform-provider-vcd_v1.0.0_x4 2018/12/10 18:36:47 [TRACE] root: eval: terraform.EvalWriteState 2018/12/10 18:36:47 [TRACE] root: eval: terraform.EvalApplyProvisioners 2018/12/10 18:36:47 [TRACE] root: eval: terraform.EvalIf 2018/12/10 18:36:47 [TRACE] root: eval: terraform.EvalWriteState 2018/12/10 18:36:47 [TRACE] root: eval: terraform.EvalWriteDiff 2018/12/10 18:36:47 [TRACE] root: eval: terraform.EvalApplyPost 2018/12/10 18:36:47 [ERROR] root: eval: terraform.EvalApplyPost, err: 1 error(s) occurred:
vcd_vapp_vm.first-terra-vm: unexpected EOF 2018/12/10 18:36:47 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
vcd_vapp_vm.first-terra-vm: unexpected EOF 2018/12/10 18:36:47 [TRACE] [walkApply] Exiting eval tree: vcd_vapp_vm.first-terra-vm 2018/12/10 18:36:47 [TRACE] dag/walk: upstream errored, not walking "provider.vcd (close)" 2018/12/10 18:36:47 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)" 2018/12/10 18:36:47 [TRACE] dag/walk: upstream errored, not walking "root" 2018/12/10 18:36:47 [TRACE] Preserving existing state lineage "defed415-08f2-c401-cfbd-ed5d58aef99b" 2018/12/10 18:36:47 [TRACE] Preserving existing state lineage "defed415-08f2-c401-cfbd-ed5d58aef99b" 2018/12/10 18:36:47 [TRACE] Preserving existing state lineage "defed415-08f2-c401-cfbd-ed5d58aef99b" 2018/12/10 18:36:47 [DEBUG] plugin: waiting for all plugin processes to complete... 2018-12-10T18:36:47.341+0100 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!