Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCD catalog error #128

Closed
ghost opened this issue Dec 10, 2018 · 7 comments
Closed

VCD catalog error #128

ghost opened this issue Dec 10, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 10, 2018

This issue was originally opened by @pjamelot as hashicorp/terraform#19591. It was migrated here as a result of the provider split. The original body of the issue is below.


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

@lvirbalas
Copy link
Collaborator

It's a guess at this point, but I thought I'll share that this looks similar to the issue we just fixed in vmware-takes-ownership branch:
https://github.com/terraform-providers/terraform-provider-vcd/issues/120#issuecomment-446108109

It was due to org name set incorrectly and there was no proper error message (now there is).

@vbauzys
Copy link
Contributor

vbauzys commented Dec 11, 2018

First thing is that this error from master code, not from vmware-takes-ownership branch code.

@pjamelot
Copy link

Hello, I think the problem is due to the catalog name because it is not a public catalog.
How do you set a the catalog_name parameter when it is a catalog from the vorg?
BR,

@vbauzys
Copy link
Contributor

vbauzys commented Dec 11, 2018

@pjamelot please try vmware-takes-ownership branch. In there you can configure organization and catalog.

@funky81
Copy link

funky81 commented Feb 10, 2019

@pjamelot please try vmware-takes-ownership branch. In there you can configure organization and catalog.

Hi @vbauzysvmware, how to do this? I just have privilleges under my organization only

@vbauzys
Copy link
Contributor

vbauzys commented Feb 11, 2019

@funky81 Could you provide more information? And try use latest provider (binary now version 2.0)

@vbauzys
Copy link
Contributor

vbauzys commented Mar 7, 2019

P.s. Latest binary is out and documentation is updated https://www.terraform.io/docs/providers/vcd/index.html

@vbauzys vbauzys closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants