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"
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.