Unable to deploy vapp trmplate with VCD provider error 400

338 views
Skip to first unread message

Jeff Brimager

unread,
Oct 19, 2016, 3:47:29 PM10/19/16
to Terraform
As the title says, I am trying to deploy a vapp using the VCD provider. Below is my very basic tf file. 

# Configure the VMware vCloud Director Provider
provider "vcd" {
    user = "myuser"
    password = "mypass"
    org = "Master"
    vdc = "Master"
    maxRetryTimeout = "6000"
    allow_unverified_ssl = "true"
}

resource "vcd_vapp" "Voltron-Terraform" {
    name = "Voltron-Terraform-Test"
    catalog_name  = "Master_TLX"
    template_name = "Master TLX Voltron 10142016"
    network_name  = "External"
}

Here is the error I'm receiving. 

Error applying plan:

1 error(s) occurred:

* vcd_vapp.Voltron-Terraform: Error: &errors.errorString{s:"error instantiating a new template: API Error: 400: The VCD entity Voltron-Terraform-Test already exists."}

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.

I have tried millions of names/iterations same error regardless. I even moved the timeout to 50000 seconds and this error appears almost immediately. The template has 14 machines in it and is roughly 6tb worth of data.It also has a network configured for each machine to use a 192.168.40.* address with a different name than the actual vdc network. Do i maybe need to define some netowkr stuff?

Lowe Schmidt

unread,
Oct 19, 2016, 5:10:05 PM10/19/16
to terrafo...@googlegroups.com
Does the resource already exist in either your state or at the providers interface? 

--
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/beb6e1c5-fa44-4ca1-a735-ae6777cbda8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Brimager

unread,
Oct 19, 2016, 5:13:19 PM10/19/16
to Terraform
No i have removed all traces of them repeatedly. It gives this error the first time I run with any name. 
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.

Lowe Schmidt

unread,
Oct 20, 2016, 4:27:50 AM10/20/16
to terrafo...@googlegroups.com
Do you get a similar error if you change the name of the resource?
Something like 

resource "vcd_vapp" "Voltron-Terraform" {
    name = "Voltron-Terraform-Test-again"


--
Lowe Schmidt | +46 723 867 157

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/7a1e11c1-a45e-43c3-b2b9-a2c57cc59d46%40googlegroups.com.

Jeff Brimager

unread,
Oct 20, 2016, 6:41:18 AM10/20/16
to terrafo...@googlegroups.com

Yes


You received this message because you are subscribed to a topic in the Google Groups "Terraform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/terraform-tool/DZaC4qw94TI/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAC-wWcRucN1uJySaFo-FBJ9gWg%3DGud9oZe938_2S4UR2ReUS8A%40mail.gmail.com.

Vince Do

unread,
May 5, 2017, 4:06:57 AM5/5/17
to Terraform
Did you find out why this error appears or a way to solve this? I'm experiencing the same problem...

Best regards,

Vince

Yes


--
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 a topic in the Google Groups "Terraform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/terraform-tool/DZaC4qw94TI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to terraform-too...@googlegroups.com.

Vince Do

unread,
May 5, 2017, 8:39:44 AM5/5/17
to Terraform
Here we go with the solution: this happens because Terrafom reaches the timeout for the current operation. Solution: extend the timeout.

Jeff Brimager

unread,
May 5, 2017, 9:06:55 AM5/5/17
to terrafo...@googlegroups.com
I was never able to work it out. 

Jeff Brimager
▲▲▼▼◄►◄► B A Start

To unsubscribe from this group and all its topics, 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/ddc1901c-5630-48f5-97ba-80dd8696ffb6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages