Can't login to VMware vCloud Director 5.1 using vcd provider

635 views
Skip to first unread message

Javier Barrio

unread,
May 27, 2016, 11:12:14 AM5/27/16
to Terraform
Hi,

This morning I wanted to test VMware vCloud Director provider with a vCloud 5.1 hosting.

I've crafted a basic vApp and created this example.tf:

# Configure the VMware vCloud Director Provider
provider "vcd" {
    user                 = "myuser"
    password             = "mypass"
    org                  = "myorg"
    url                  = "https://url/to/api"
    vdc                  = "myvdc"
    maxRetryTimeout      = 60
    allow_unverified_ssl = "true"
}

variable "catalog"        { default = "myCatalog" }
variable "vapp_template"  { default = "base-os-template" }
 
resource "vcd_vapp" "frontend1" {
    name          = "frontend1"
    catalog_name  = "${var.catalog}"
    template_name = "${var.vapp_template}"
    memory        = 8192
    cpus          = 4
    network_name  = "External-FE"
    ip            = "XXX.XXX.XXX.XXX"
}

As you see pretty hardcoded values just to start testing this provider.

But I can't make it work. When I run 'terraform plan' with TRACE enabled I get this:

2016/05/27 16:59:27 [DEBUG] vertex vcd_vapp.frontend1, got dep: var.catalog
2016/05/27 16:59:27 [DEBUG] vertex vcd_vapp.frontend1, got dep: var.vapp_template
2016/05/27 16:59:27 [DEBUG] root: eval: terraform.EvalNoop
2016/05/27 16:59:27 [DEBUG] root: eval: terraform.EvalNoop
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalOpFilter
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalSequence
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalGetProvider
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalInterpolate
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalBuildProviderConfig
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalSetProviderConfig
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalOpFilter
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalSequence
2016/05/27 16:59:27 [DEBUG] root: eval: *terraform.EvalConfigProvider

2016/05/27 16:59:28 [ERROR] root: eval: *terraform.EvalConfigProvider, err: Something went wrong: error authorizing: error parsing error body for non-200 request: EOF
2016/05/27 16:59:28 [ERROR] root: eval: *terraform.EvalSequence, err: Something went wrong: error authorizing: error parsing error body for non-200 request: EOF
2016/05/27 16:59:28 [ERROR] root: eval: *terraform.EvalOpFilter, err: Something went wrong: error authorizing: error parsing error body for non-200 request: EOF
2016/05/27 16:59:28 [ERROR] root: eval: *terraform.EvalSequence, err: Something went wrong: error authorizing: error parsing error body for non-200 request: EOF
2016/05/27 16:59:28 [TRACE] [walkRefresh] Exiting eval tree: provider.vcd
2016/05/27 16:59:28 [DEBUG] vertex provider.vcd (close), got dep: provider.vcd
2016/05/27 16:59:28 [DEBUG] vertex vcd_vapp.frontend1, got dep: provider.vcd
2016/05/27 16:59:28 [DEBUG] vertex provider.vcd (close), got dep: vcd_vapp.frontend1
2016/05/27 16:59:28 [DEBUG] vertex root, got dep: provider.vcd (close)
Error refreshing state: 1 error(s) occurred:

* Something went wrong: error authorizing: error parsing error body for non-200 request: EOF
2016/05/27 16:59:28 [DEBUG] waiting for all plugin processes to complete...
2016/05/27 16:59:28 [DEBUG] /tmp/terraform-provider-vcd: plugin process exited

And that's all I can get. No matter how many different combinations I test always fails similar to this end of file weird error. I can confirm that my credentials and URL are working fine because I have already tested that.

May somebody be so kind to point me in any direction that can bring me to the right path?

Cheers.

Yael ka

unread,
Jul 3, 2017, 4:40:11 AM7/3/17
to Terraform
I'm having the same problem.
Can anyone advice on this?

Thanks.

Lowe Schmidt

unread,
Jul 3, 2017, 4:45:00 AM7/3/17
to terrafo...@googlegroups.com
It's easier to help out if you paste the actual code you're using.

--
Lowe Schmidt | +46 723 867 157

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/82278757-662a-48f9-b120-f00efe8a7430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages