hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.53k stars 9.52k forks source link

apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing #26660

Closed troquereau closed 3 years ago

troquereau commented 3 years ago

rpc error: code = Unavailable desc = transport is closing

Maybe it's VRA but maybe not !!! :)

terraform version : Terraform v0.12.29 plugin vra7 version : plugin.terraform-provider-vra7_v2.0.1

tffile.tf

variable "username" { type = string } variable "password" { type = string } variable "tenant" { type = string } variable "os" { type = string } variable "cpu" { type = number } variable "memory" { type = number }

provider "vra7" { username = var.username password = var.password tenant = var.tenant host = var.host insecure = true }

integration

resource "vra7_deployment" "mylittledeployment" { count = 1 catalog_item_name = var.os description = "deployment" reasons = "deploy vm"

resource_configuration { component_name = "MY_VM" configuration = { "cpu" = var.cpu "memory" = var.memory } } wait_timeout = 20 businessgroup_name = "Integration" }

crash.log

2020-10-21T14:56:08.301+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: Check the status of the request https://**********/catalog-service/api/consumer/requests/d51ae454-ae9f-4540-ae3f-9e0582635b48/resourceViews?page=1 2020-10-21T14:56:08.301+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: The response is: 200 2020/10/21 14:56:08 [DEBUG] vra7_deployment.mylittledeployment[0]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalMaybeTainted 2020/10/21 14:56:08 [TRACE] EvalMaybeTainted: vra7_deployment.mylittledeployment[0] encountered an error during creation, so it is now marked as tainted 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalWriteState 2020/10/21 14:56:08 [TRACE] EvalWriteState: removing state object for vra7_deployment.mylittledeployment[0] 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalApplyProvisioners 2020/10/21 14:56:08 [TRACE] EvalApplyProvisioners: vra7_deployment.mylittledeployment[0] has no state, so skipping provisioners 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalMaybeTainted 2020/10/21 14:56:08 [TRACE] EvalMaybeTainted: vra7_deployment.mylittledeployment[0] encountered an error during creation, so it is now marked as tainted 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalWriteState 2020/10/21 14:56:08 [TRACE] EvalWriteState: removing state object for vra7_deployment.mylittledeployment[0] 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalIf 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalIf 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalWriteDiff 2020/10/21 14:56:08 [TRACE] : eval: terraform.EvalApplyPost 2020/10/21 14:56:08 [ERROR] : eval: terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing 2020/10/21 14:56:08 [ERROR] : eval: terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/10/21 14:56:08 [TRACE] [walkApply] Exiting eval tree: vra7_deployment.mylittledeployment[0] 2020/10/21 14:56:08 [TRACE] vertex "vra7_deployment.mylittledeployment[0]": visit complete 2020/10/21 14:56:08 [TRACE] dag/walk: upstream of "provider.vra7 (close)" errored, so skipping 2020/10/21 14:56:08 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping 2020/10/21 14:56:08 [TRACE] dag/walk: upstream of "root" errored, so skipping 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: read nil snapshot 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: no original state snapshot to back up 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 1 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: panic: interface conversion: interface {} is nil, not string 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: goroutine 33 [running]: 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/vmware/terraform-provider-vra7/vra7.resourceVra7DeploymentRead(0xc0003ab7a0, 0x100d120, 0xc0001ab6e0, 0x41, 0xc00010c0a0) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/vmware/terraform-provider-vra7/vra7/resource_vra7_deployment.go:457 +0x2379 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/vmware/terraform-provider-vra7/vra7.resourceVra7DeploymentCreate(0xc0003ab7a0, 0x100d120, 0xc0001ab6e0, 0x2, 0x17a2e80) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/vmware/terraform-provider-vra7/vra7/resource_vra7_deployment.go:214 +0x9e5 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform/helper/schema.(Resource).Apply(0xc0000c8b80, 0xc0001fe140, 0xc000218480, 0x100d120, 0xc0001ab6e0, 0xef7a01, 0xc0001f10a8, 0xc000217f20) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform@v0.12.6/helper/schema/resource.go:287 +0x375 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform/helper/schema.(Provider).Apply(0xc0000c8d80, 0xc0002418d0, 0xc0001fe140, 0xc000218480, 0xc00024a508, 0xc00000f020, 0xef9a00) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform@v0.12.6/helper/schema/provider.go:285 +0x99 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform/helper/plugin.(GRPCProviderServer).ApplyResourceChange(0xc00000ea80, 0x11bdaa0, 0xc00012b920, 0xc000108d20, 0xc00000ea80, 0xc00012b920, 0xc000224a48) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform@v0.12.6/helper/plugin/grpc_provider.go:885 +0x88b 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x10002a0, 0xc00000ea80, 0x11bdaa0, 0xc00012b920, 0xc000075e50, 0x0, 0x11bdaa0, 0xc00012b920, 0xc000237500, 0x606) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: github.com/hashicorp/terraform@v0.12.6/internal/tfplugin5/tfplugin5.pb.go:3217 +0x214 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc.(Server).processUnaryRPC(0xc000001800, 0x11c7380, 0xc000212900, 0xc000115d00, 0xc0003adcb0, 0x1762100, 0x0, 0x0, 0x0) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc@v1.18.0/server.go:966 +0x486 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc.(Server).handleStream(0xc000001800, 0x11c7380, 0xc000212900, 0xc000115d00, 0x0) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc@v1.18.0/server.go:1245 +0xcac 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc.(Server).serveStreams.func1.1(0xc000367000, 0xc000001800, 0x11c7380, 0xc000212900, 0xc000115d00) 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc@v1.18.0/server.go:685 +0xa5 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: created by google.golang.org/grpc.(Server).serveStreams.func1 2020-10-21T14:56:08.307+0200 [DEBUG] plugin.terraform-provider-vra7_v2.0.1: google.golang.org/grpc@v1.18.0/server.go:683 +0xa5 2020-10-21T14:56:08.307+0200 [DEBUG] plugin: plugin process exited: path=/root/terraform-provider-vra7_v2.0.1 pid=4681 error="exit status 2" 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info 2020/10/21 14:56:08 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock 2020-10-21T14:56:08.308+0200 [DEBUG] plugin: plugin exited

ghost commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.