vmware / terraform-provider-vra

Terraform Provider for VMware Aria Automation
https://registry.terraform.io/providers/vmware/vra/
Mozilla Public License 2.0
104 stars 93 forks source link

vra_deployment errors #96

Closed mdittbrenner215 closed 5 years ago

mdittbrenner215 commented 5 years ago

Trying to do a vra_deployment.

Get a 500 error. This is a vra 8.0 instance

Here is my resource

resource "vra_deployment" "this" { name = "${var.deployment_name}" description = "terraform test deployment"

blueprint_id = "${var.blueprint_id}" blueprint_version = "${var.blueprint_version}" project_id = "${data.vra_project.this.id}"

inputs = { vmName = "${var.deployment_name}" inFlavor = "c5.large" inTenant = "A" inRail = "protected" inlicense = "Redhat" inCMI = "Cloud-init" }

expand_resources = true expand_last_request = true }

mdittbrenner215 commented 5 years ago

019-11-05T12:59:04.220-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 [DEBUG] setting computed for "project" from ComputedKeys 2019-11-05T12:59:04.220-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 [DEBUG] setting computed for "resources" from ComputedKeys 2019-11-05T12:59:04.221-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 [DEBUG] setting computed for "expense" from ComputedKeys 2019-11-05T12:59:04.221-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 starting to create vra_deployment resource 2019-11-05T12:59:04.342-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 getResp: [GET /deployment/api/deployments/names/{name}][200] checkDeploymentNameUsingGETOK , err: [GET /deployment/api/deployments/names/{name}][404] checkDeploymentNameUsingGETNotFound 2019-11-05T12:59:04.342-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 deployment 'mdtest200' doesn't exist already and hence can be created 2019-11-05T12:59:04.568-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 received error. err=unknown error (status 500): {resp:0xc000710360} , bpRequestCreated=, bpRequestAccepted= 2019/11/05 12:59:04 [DEBUG] vra_deployment.this: apply errored, but we're indicating that via the Error pointer rather than returning it: unknown error (status 500): {resp:0xc000710360}

mdittbrenner215 commented 5 years ago

019-11-05T12:59:04.220-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 [DEBUG] setting computed for "project" from ComputedKeys 2019-11-05T12:59:04.220-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 [DEBUG] setting computed for "resources" from ComputedKeys 2019-11-05T12:59:04.221-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 [DEBUG] setting computed for "expense" from ComputedKeys 2019-11-05T12:59:04.221-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 starting to create vra_deployment resource 2019-11-05T12:59:04.342-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 getResp: [GET /deployment/api/deployments/names/{name}][200] checkDeploymentNameUsingGETOK , err: [GET /deployment/api/deployments/names/{name}][404] checkDeploymentNameUsingGETNotFound 2019-11-05T12:59:04.342-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 deployment 'mdtest200' doesn't exist already and hence can be created 2019-11-05T12:59:04.568-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 12:59:04 received error. err=unknown error (status 500): {resp:0xc000710360} , bpRequestCreated=, bpRequestAccepted= 2019/11/05 12:59:04 [DEBUG] vra_deployment.this: apply errored, but we're indicating that via the Error pointer rather than returning it: unknown error (status 500): {resp:0xc000710360}

mdittbrenner215 commented 5 years ago

2019/11/05 12:58:57 [INFO] Terraform version: 0.12.10
2019/11/05 12:58:57 [INFO] Go runtime version: go1.13.1 2019/11/05 12:58:57 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"} 2019/11/05 12:58:57 [DEBUG] Attempting to open CLI config file: /Users/mdittb638/.terraformrc 2019/11/05 12:58:57 Loading CLI configuration from /Users/mdittb638/.terraformrc 2019/11/05 12:58:57 [INFO] CLI command args: []string{"apply"} 2019/11/05 12:58:57 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config 2019/11/05 12:58:57 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory 2019/11/05 12:58:57 [DEBUG] New state was assigned lineage "566221f3-7d62-4c05-e7c3-1013ef1cccfc" 2019/11/05 12:58:57 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) 2019/11/05 12:58:57 [TRACE] Meta.Backend: instantiated backend of type 2019/11/05 12:58:57 [DEBUG] checking for provider in "." 2019/11/05 12:58:57 [WARN] found legacy provider "terraform-provider-vra" 2019/11/05 12:58:57 [DEBUG] checking for provider in "/usr/local/bin" 2019/11/05 12:58:57 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" 2019/11/05 12:58:57 [DEBUG] found plugin override in .terraformrc: "vra7", "/Users/mdittb638/go/bin/terraform-provider-vra" 2019/11/05 12:58:57 [DEBUG] found valid plugin: "vra", "0.0.0", "/Users/mdittb638/go/newbin/terraform-provider-vra" 2019/11/05 12:58:57 [DEBUG] found valid plugin: "vra7", "0.0.0", "/Users/mdittb638/go/bin/terraform-provider-vra" 2019/11/05 12:58:57 [DEBUG] checking for provisioner in "." 2019/11/05 12:58:57 [DEBUG] checking for provisioner in "/usr/local/bin" 2019/11/05 12:58:57 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64" 2019/11/05 12:58:57 [TRACE] Meta.Backend: backend does not support operations, so wrapping it in a local backend 2019/11/05 12:58:57 [INFO] backend/local: starting Apply operation 2019/11/05 12:58:57 [TRACE] backend/local: requesting state manager for workspace "default" 2019/11/05 12:58:57 [TRACE] backend/local: state manager for workspace "default" will:

mdittbrenner215 commented 5 years ago

so i had bad data for blueprint_id. I fixed it with id instead of name. Now getting a 400 error.

mdittbrenner215 commented 5 years ago

2019-11-05T15:43:09.254-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 [DEBUG] setting computed for "project" from ComputedKeys 2019-11-05T15:43:09.254-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 [DEBUG] setting computed for "resources" from ComputedKeys 2019-11-05T15:43:09.254-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 [DEBUG] setting computed for "expense" from ComputedKeys 2019-11-05T15:43:09.254-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 starting to create vra_deployment resource 2019-11-05T15:43:09.297-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 getResp: [GET /deployment/api/deployments/names/{name}][200] checkDeploymentNameUsingGETOK , err: [GET /deployment/api/deployments/names/{name}][404] checkDeploymentNameUsingGETNotFound 2019-11-05T15:43:09.297-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 deployment 'mdtest200' doesn't exist already and hence can be created 2019-11-05T15:43:09.468-0500 [DEBUG] plugin.terraform-provider-vra: 2019/11/05 15:43:09 received error. err=[POST /blueprint/api/blueprint-requests][400] createBlueprintRequestUsingPOST1BadRequest , bpRequestCreated=, bpRequestAccepted=

mdittbrenner215 commented 5 years ago

2019/11/05 15:43:05 [INFO] Terraform version: 0.12.10
2019/11/05 15:43:05 [INFO] Go runtime version: go1.13.1 2019/11/05 15:43:05 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"} 2019/11/05 15:43:05 [DEBUG] Attempting to open CLI config file: /Users/mdittb638/.terraformrc 2019/11/05 15:43:05 Loading CLI configuration from /Users/mdittb638/.terraformrc 2019/11/05 15:43:05 [INFO] CLI command args: []string{"apply"} 2019/11/05 15:43:05 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config 2019/11/05 15:43:05 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory 2019/11/05 15:43:05 [DEBUG] New state was assigned lineage "33f6d195-8340-0fd5-4e27-1d75a5b07b48" 2019/11/05 15:43:05 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) 2019/11/05 15:43:05 [TRACE] Meta.Backend: instantiated backend of type 2019/11/05 15:43:05 [DEBUG] checking for provider in "." 2019/11/05 15:43:05 [WARN] found legacy provider "terraform-provider-vra" 2019/11/05 15:43:05 [DEBUG] checking for provider in "/usr/local/bin" 2019/11/05 15:43:05 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" 2019/11/05 15:43:05 [DEBUG] found plugin override in .terraformrc: "vra7", "/Users/mdittb638/go/bin/terraform-provider-vra" 2019/11/05 15:43:05 [DEBUG] found valid plugin: "vra", "0.0.0", "/Users/mdittb638/go/newbin/terraform-provider-vra" 2019/11/05 15:43:05 [DEBUG] found valid plugin: "vra7", "0.0.0", "/Users/mdittb638/go/bin/terraform-provider-vra" 2019/11/05 15:43:05 [DEBUG] checking for provisioner in "." 2019/11/05 15:43:05 [DEBUG] checking for provisioner in "/usr/local/bin" 2019/11/05 15:43:05 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64" 2019/11/05 15:43:05 [TRACE] Meta.Backend: backend does not support operations, so wrapping it in a local backend 2019/11/05 15:43:05 [INFO] backend/local: starting Apply operation 2019/11/05 15:43:05 [TRACE] backend/local: requesting state manager for workspace "default" 2019/11/05 15:43:05 [TRACE] backend/local: state manager for workspace "default" will:

mdittbrenner215 commented 5 years ago

figure out was issue on my end. This is not an issue.