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

terraform crashed with error "*terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing" #26911

Closed luoymu closed 3 years ago

luoymu commented 3 years ago

Terraform Version

Terraform v0.13.5

...

Terraform Configuration Files

provider "vsphere" { version = "~> 1.24" user = var.vsphere_user password = var.vsphere_password vsphere_server = var.vsphere_server

If you have a self-signed cert

allow_unverified_ssl = true }

data "vsphere_datacenter" "dc" { name = var.vsphere_dc }

data "vsphere_compute_cluster" "cluster" { name = var.vsphere_cluster datacenter_id = data.vsphere_datacenter.dc.id }

data "vsphere_host" "host" { name = var.vsphere_host datacenter_id = data.vsphere_datacenter.dc.id }

data "vsphere_datastore" "datastore" { name = var.vsphere_datastore datacenter_id = data.vsphere_datacenter.dc.id }

data "vsphere_resource_pool" "pool" { name = var.vsphere_pool datacenter_id = data.vsphere_datacenter.dc.id }

data "vsphere_folder" "folder" { path = var.vsphere_folder }

data "vsphere_network" "network" { name = var.vsphere_network datacenter_id = data.vsphere_datacenter.dc.id }

resource "vsphere_virtual_machine" "vmm" { name = var.vsphere_vm resource_pool_id = data.vsphere_resource_pool.pool.id datastore_id = data.vsphere_datastore.datastore.id datacenter_id = data.vsphere_datacenter.dc.id folder = var.vsphere_folder host_system_id = data.vsphere_host.host.id network_interface { network_id = data.vsphere_network.network.id } num_cpus = var.vm_cpu memory = var.vm_memory guest_id = "other3xLinux64Guest"

disk { label = "disk0" size = 20 }

wait_for_guest_net_timeout = 0 wait_for_guest_ip_timeout = 0

Debug Output

2020/11/12 16:08:51 [INFO] Terraform version: 0.13.5
2020/11/12 16:08:51 [INFO] Go runtime version: go1.14.7 2020/11/12 16:08:51 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/2.0.0/versions/0.13.5/terraform", "version"} 2020/11/12 16:08:51 [DEBUG] Attempting to open CLI config file: /Users/luoy/.terraformrc 2020/11/12 16:08:51 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2020/11/12 16:08:51 [DEBUG] checking for credentials in "/Users/luoy/.terraform.d/plugins" 2020/11/12 16:08:51 [DEBUG] checking for credentials in "/Users/luoy/.terraform.d/plugins/darwin_amd64" 2020/11/12 16:08:51 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins 2020/11/12 16:08:51 [DEBUG] will search for provider plugins in /Users/luoy/.terraform.d/plugins 2020/11/12 16:08:51 [DEBUG] ignoring non-existing provider search directory /Users/luoy/Library/Application Support/io.terraform/plugins 2020/11/12 16:08:51 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins 2020/11/12 16:08:51 [INFO] CLI command args: []string{"version"} 2020/11/12 16:17:05 [INFO] Terraform version: 0.13.5
2020/11/12 16:17:05 [INFO] Go runtime version: go1.14.7 2020/11/12 16:17:05 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/2.0.0/versions/0.13.5/terraform", "apply"} 2020/11/12 16:17:05 [DEBUG] Attempting to open CLI config file: /Users/luoy/.terraformrc 2020/11/12 16:17:05 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2020/11/12 16:17:05 [DEBUG] checking for credentials in "/Users/luoy/.terraform.d/plugins" 2020/11/12 16:17:05 [DEBUG] checking for credentials in "/Users/luoy/.terraform.d/plugins/darwin_amd64" 2020/11/12 16:17:05 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins 2020/11/12 16:17:05 [DEBUG] will search for provider plugins in /Users/luoy/.terraform.d/plugins 2020/11/12 16:17:05 [DEBUG] ignoring non-existing provider search directory /Users/luoy/Library/Application Support/io.terraform/plugins 2020/11/12 16:17:05 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins 2020/11/12 16:17:05 [INFO] CLI command args: []string{"apply"} 2020/11/12 16:17:05 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. Use TF_LOG=TRACE to see Terraform's internal logs.

2020/11/12 16:17:05 [DEBUG] New state was assigned lineage "56fa8d51-34b2-eb2f-16a5-5d7fe59b8762" 2020/11/12 16:17:06 [DEBUG] checking for provisioner in "." 2020/11/12 16:17:06 [DEBUG] checking for provisioner in "/usr/local/Cellar/tfenv/2.0.0/versions/0.13.5" 2020/11/12 16:17:06 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64" 2020/11/12 16:17:06 [DEBUG] checking for provisioner in "/Users/luoy/.terraform.d/plugins" 2020/11/12 16:17:06 [DEBUG] checking for provisioner in "/Users/luoy/.terraform.d/plugins/darwin_amd64" 2020/11/12 16:17:06 [INFO] backend/local: starting Apply operation 2020-11-12T16:17:06.044-0500 [INFO] plugin: configuring client automatic mTLS 2020-11-12T16:17:06.081-0500 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 args=[.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4] 2020-11-12T16:17:06.090-0500 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 pid=78595 2020-11-12T16:17:06.090-0500 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 2020-11-12T16:17:06.110-0500 [INFO] plugin.terraform-provider-vsphere_v1.24.2_x4: configuring server automatic mTLS: timestamp=2020-11-12T16:17:06.109-0500 2020-11-12T16:17:06.141-0500 [DEBUG] plugin: using plugin: version=5 2020-11-12T16:17:06.141-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: plugin address: address=/var/folders/y5/zn47zhxd6qs0zkdknpfyb1l9rqymhz/T/plugin515637078 network=unix timestamp=2020-11-12T16:17:06.141-0500 2020-11-12T16:17:06.206-0500 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2020-11-12T16:17:06.218-0500 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 pid=78595 2020-11-12T16:17:06.218-0500 [DEBUG] plugin: plugin exited 2020/11/12 16:17:06 [INFO] terraform: building graph: GraphTypeValidate 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_datastore.datastore" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_datacenter.dc" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_folder.folder" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_compute_cluster.cluster" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "vsphere_virtual_machine.vmm" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_host.host" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_resource_pool.pool" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_network.network" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_pool" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_folder" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_dc" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "vsphere_virtual_machine.vmm" references: [var.vsphere_folder data.vsphere_datastore.datastore var.vm_memory data.vsphere_host.host data.vsphere_datacenter.dc data.vsphere_resource_pool.pool var.vm_cpu var.vsphere_vm data.vsphere_network.network data.vsphere_network.network] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_host.host" references: [data.vsphere_datacenter.dc var.vsphere_host] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_resource_pool.pool" references: [data.vsphere_datacenter.dc var.vsphere_pool] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_server" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_network.network" references: [data.vsphere_datacenter.dc var.vsphere_network] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vm_memory" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vm_cpu" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/vsphere\"]" references: [var.vsphere_password var.vsphere_user var.vsphere_server] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_datastore.datastore" references: [data.vsphere_datacenter.dc var.vsphere_datastore] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_datacenter.dc" references: [var.vsphere_dc] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_cluster" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_user" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_password" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_network" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_vm" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_host" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_folder.folder" references: [var.vsphere_folder] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_compute_cluster.cluster" references: [data.vsphere_datacenter.dc var.vsphere_cluster] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_datastore" references: [] 2020/11/12 16:17:06 [DEBUG] Starting graph walk: walkValidate 2020-11-12T16:17:06.232-0500 [INFO] plugin: configuring client automatic mTLS 2020-11-12T16:17:06.260-0500 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 args=[.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4] 2020-11-12T16:17:06.266-0500 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 pid=78596 2020-11-12T16:17:06.266-0500 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 2020-11-12T16:17:06.282-0500 [INFO] plugin.terraform-provider-vsphere_v1.24.2_x4: configuring server automatic mTLS: timestamp=2020-11-12T16:17:06.282-0500 2020-11-12T16:17:06.312-0500 [DEBUG] plugin: using plugin: version=5 2020-11-12T16:17:06.312-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: plugin address: address=/var/folders/y5/zn47zhxd6qs0zkdknpfyb1l9rqymhz/T/plugin813164459 network=unix timestamp=2020-11-12T16:17:06.312-0500 2020-11-12T16:17:06.368-0500 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2020-11-12T16:17:06.389-0500 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 pid=78596 2020-11-12T16:17:06.389-0500 [DEBUG] plugin: plugin exited 2020/11/12 16:17:06 [INFO] backend/local: apply calling Refresh 2020/11/12 16:17:06 [INFO] terraform: building graph: GraphTypeRefresh 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_datastore.datastore (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_resource_pool.pool (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_host.host (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_network.network (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "vsphere_virtual_machine.vmm (expand)" (terraform.nodeExpandRefreshableManagedResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_folder.folder (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_datacenter.dc (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ProviderTransformer: "data.vsphere_compute_cluster.cluster (expand)" (terraform.nodeExpandRefreshableDataResource) needs provider["registry.terraform.io/hashicorp/vsphere"] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_network.network (expand)" references: [var.vsphere_network data.vsphere_datacenter.dc (expand)] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_host" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_dc" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vm_memory" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/vsphere\"]" references: [var.vsphere_user var.vsphere_server var.vsphere_password] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "vsphere_virtual_machine.vmm (expand)" references: [data.vsphere_datacenter.dc (expand) var.vsphere_folder var.vm_memory data.vsphere_resource_pool.pool (expand) data.vsphere_host.host (expand) data.vsphere_datastore.datastore (expand) var.vm_cpu var.vsphere_vm data.vsphere_network.network (expand) data.vsphere_network.network (expand)] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_folder.folder (expand)" references: [var.vsphere_folder] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_datacenter.dc (expand)" references: [var.vsphere_dc] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_folder" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_vm" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_pool" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vm_cpu" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_server" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_user" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_compute_cluster.cluster (expand)" references: [var.vsphere_cluster data.vsphere_datacenter.dc (expand)] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_datastore.datastore (expand)" references: [data.vsphere_datacenter.dc (expand) var.vsphere_datastore] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_resource_pool.pool (expand)" references: [data.vsphere_datacenter.dc (expand) var.vsphere_pool] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_network" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_cluster" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_password" references: [] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "data.vsphere_host.host (expand)" references: [data.vsphere_datacenter.dc (expand) var.vsphere_host] 2020/11/12 16:17:06 [DEBUG] ReferenceTransformer: "var.vsphere_datastore" references: [] 2020/11/12 16:17:06 [DEBUG] Starting graph walk: walkRefresh 2020-11-12T16:17:06.394-0500 [INFO] plugin: configuring client automatic mTLS 2020-11-12T16:17:06.419-0500 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 args=[.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4] 2020-11-12T16:17:06.424-0500 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 pid=78597 2020-11-12T16:17:06.424-0500 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 2020-11-12T16:17:06.438-0500 [INFO] plugin.terraform-provider-vsphere_v1.24.2_x4: configuring server automatic mTLS: timestamp=2020-11-12T16:17:06.438-0500 2020-11-12T16:17:06.466-0500 [DEBUG] plugin: using plugin: version=5 2020-11-12T16:17:06.466-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: plugin address: address=/var/folders/y5/zn47zhxd6qs0zkdknpfyb1l9rqymhz/T/plugin409487976 network=unix timestamp=2020-11-12T16:17:06.466-0500 2020-11-12T16:17:06.521-0500 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2020-11-12T16:17:06.526-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:06 [DEBUG] Cached SOAP client session data not valid or persistence not enabled, new session necessary 2020-11-12T16:17:06.526-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:06 [DEBUG] Creating new SOAP API session on endpoint muavvctd01.mcs.miamioh.edu 2020-11-12T16:17:07.169-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:07 [DEBUG] SOAP API session creation successful 2020-11-12T16:17:07.169-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:07 [DEBUG] VMWare vSphere Client configured for URL: muavvctd01.mcs.miamioh.edu 2020-11-12T16:17:07.169-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:07 [DEBUG] Setting up REST client 2020-11-12T16:17:07.850-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:07 [DEBUG] CIS REST client configuration successful 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_dc" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_datacenter.dc" references: [] 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_folder" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_folder.folder" references: [] 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_host" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_host.host" references: [] 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_cluster" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_compute_cluster.cluster" references: [] 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_network" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_network.network" references: [] 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_datastore" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_datastore.datastore" references: [] 2020/11/12 16:17:08 [WARN] ReferenceTransformer: reference not found: "var.vsphere_pool" 2020/11/12 16:17:08 [DEBUG] ReferenceTransformer: "data.vsphere_resource_pool.pool" references: [] 2020-11-12T16:17:08.899-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:08 [DEBUG] Looking for cluster "ClusterT" in datacenter "/HoytTest" 2020-11-12T16:17:08.899-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:08 [DEBUG] Attempting to locate compute cluster "ClusterT" in datacenter "/HoytTest" 2020/11/12 16:17:10 [DEBUG] Resource state not found for node "vsphere_virtual_machine.vmm", instance vsphere_virtual_machine.vmm 2020-11-12T16:17:10.116-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] vsphere_virtual_machine (ID = ): Performing diff customization and validation 2020-11-12T16:17:10.116-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] NetworkInterfaceDiffOperation: Beginning diff validation 2020-11-12T16:17:10.116-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] network_interface.0 (key 0 at ): Beginning diff validation 2020-11-12T16:17:10.116-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] network_interface.0 (key 0 at ): Diff validation complete 2020-11-12T16:17:10.116-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] NetworkInterfaceDiffOperation: Diff validation complete 2020-11-12T16:17:10.116-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] Locating vApp container with ID resgroup-3553 2020-11-12T16:17:10.207-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] VAppDiffOperation: Verifying configuration meets requirements for vApp transport 2020-11-12T16:17:10.207-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] VAppDiffOperation: ISO transport is not supported on this virtual machine or multiple transport options exist 2020-11-12T16:17:10.207-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020/11/12 16:17:10 [DEBUG] vsphere_virtual_machine (ID = ): Diff customization and validation complete 2020/11/12 16:17:10 [WARN] Provider "registry.terraform.io/hashicorp/vsphere" produced an invalid plan for vsphere_virtual_machine.vmm, but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:

Crash Output

$ terraform apply 2020/11/12 16:17:05 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. Use TF_LOG=TRACE to see Terraform's internal logs.

data.vsphere_datacenter.dc: Refreshing state... [id=datacenter-2] data.vsphere_folder.folder: Refreshing state... [id=group-v746] data.vsphere_resource_pool.pool: Refreshing state... [id=resgroup-3553] data.vsphere_network.network: Refreshing state... [id=dvportgroup-1180] data.vsphere_compute_cluster.cluster: Refreshing state... [id=domain-c3511] data.vsphere_host.host: Refreshing state... [id=host-4073] data.vsphere_datastore.datastore: Refreshing state... [id=datastore-3521]

An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols:

Terraform will perform the following actions:

vsphere_virtual_machine.vmm will be created

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.

Enter a value: yes

vsphere_virtual_machine.vmm: Creating... vsphere_virtual_machine.vmm: Still creating... [10s elapsed] vsphere_virtual_machine.vmm: Still creating... [20s elapsed] vsphere_virtual_machine.vmm: Still creating... [30s elapsed] vsphere_virtual_machine.vmm: Still creating... [40s elapsed] vsphere_virtual_machine.vmm: Still creating... [50s elapsed] vsphere_virtual_machine.vmm: Still creating... [1m0s elapsed] vsphere_virtual_machine.vmm: Still creating... [1m10s elapsed] vsphere_virtual_machine.vmm: Still creating... [1m20s elapsed] vsphere_virtual_machine.vmm: Still creating... [1m30s elapsed] vsphere_virtual_machine.vmm: Still creating... [1m40s elapsed] vsphere_virtual_machine.vmm: Still creating... [1m50s elapsed] vsphere_virtual_machine.vmm: Still creating... [2m0s elapsed] vsphere_virtual_machine.vmm: Still creating... [2m10s elapsed] vsphere_virtual_machine.vmm: Still creating... [2m20s elapsed] vsphere_virtual_machine.vmm: Still creating... [2m30s elapsed] vsphere_virtual_machine.vmm: Still creating... [2m40s elapsed] vsphere_virtual_machine.vmm: Still creating... [2m50s elapsed] vsphere_virtual_machine.vmm: Still creating... [3m0s elapsed] vsphere_virtual_machine.vmm: Still creating... [3m10s elapsed] vsphere_virtual_machine.vmm: Still creating... [3m20s elapsed] vsphere_virtual_machine.vmm: Still creating... [3m30s elapsed] vsphere_virtual_machine.vmm: Still creating... [3m40s elapsed] vsphere_virtual_machine.vmm: Still creating... [3m50s elapsed] vsphere_virtual_machine.vmm: Still creating... [4m0s elapsed] vsphere_virtual_machine.vmm: Still creating... [4m10s elapsed] vsphere_virtual_machine.vmm: Still creating... [4m20s elapsed] vsphere_virtual_machine.vmm: Still creating... [4m30s elapsed] vsphere_virtual_machine.vmm: Still creating... [4m40s elapsed]

Error: rpc error: code = Unavailable desc = transport is closing

panic: runtime error: index out of range 1 with length 1 2020-11-12T16:30:03.091-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: 2020-11-12T16:30:03.091-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: goroutine 74 [running]: 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/virtualdevice.DiskPostCloneOperation(0xc000694620, 0xc0005be580, 0xc000736b00, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, ...) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go:1008 +0x23d7 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachinePostDeployChanges(0xc000694620, 0x2058340, 0xc0005d0620, 0xc000968400, 0x0, 0x0) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:1598 +0x60d 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-provider-vsphere/vsphere.resourceVsphereMachineDeployOvfAndOva(0xc000694620, 0x2058340, 0xc0005d0620, 0x1fc5e20, 0xc0000e2440, 0x1) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:1445 +0x1490 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-provider-vsphere/vsphere.resourceVSphereVirtualMachineCreate(0xc000694620, 0x2058340, 0xc0005d0620, 0x2, 0x3321040) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vsphere/resource_vsphere_virtual_machine.go:325 +0x9e8 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(Resource).Apply(0xc0000a7800, 0xc000204550, 0xc0007675c0, 0x2058340, 0xc0005d0620, 0x208e301, 0xc0007886d8, 0xc0006b6f00) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:305 +0x365 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(Provider).Apply(0xc000216f80, 0xc0006678e0, 0xc000204550, 0xc0007675c0, 0xc0007888b0, 0xc00009e2e0, 0x2090240) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/provider.go:294 +0x99 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(GRPCProviderServer).ApplyResourceChange(0xc00000e530, 0x271a1e0, 0xc0000f8030, 0xc000626060, 0xc00000e530, 0xc0000f8030, 0xc000592a48) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin/grpc_provider.go:885 +0x8b4 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x231d780, 0xc00000e530, 0x271a1e0, 0xc0000f8030, 0xc000626000, 0x0, 0x271a1e0, 0xc0000f8030, 0xc00027d900, 0x1282) 2020-11-12T16:30:03.092-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5/tfplugin5.pb.go:3189 +0x217 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: google.golang.org/grpc.(Server).processUnaryRPC(0xc00046c160, 0x2726920, 0xc0006c2780, 0xc0007d8500, 0xc000199230, 0x32e7000, 0x0, 0x0, 0x0) 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:995 +0x460 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: google.golang.org/grpc.(Server).handleStream(0xc00046c160, 0x2726920, 0xc0006c2780, 0xc0007d8500, 0x0) 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:1275 +0xd3d 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: google.golang.org/grpc.(Server).serveStreams.func1.1(0xc000036240, 0xc00046c160, 0x2726920, 0xc0006c2780, 0xc0007d8500) 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:710 +0xa1 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: created by google.golang.org/grpc.(Server).serveStreams.func1 2020-11-12T16:30:03.093-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.24.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-vsphere/vendor/google.golang.org/grpc/server.go:708 +0xa1 2020-11-12T16:30:03.095-0500 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/vsphere/1.24.2/darwin_amd64/terraform-provider-vsphere_v1.24.2_x4 pid=78650 error="exit status 2" 2020/11/12 16:30:03 [DEBUG] vsphere_virtual_machine.vmm: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalMaybeTainted 2020/11/12 16:30:03 [TRACE] EvalMaybeTainted: vsphere_virtual_machine.vmm encountered an error during creation, so it is now marked as tainted 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalWriteState 2020/11/12 16:30:03 [TRACE] EvalWriteState: removing state object for vsphere_virtual_machine.vmm 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalApplyProvisioners 2020/11/12 16:30:03 [TRACE] EvalApplyProvisioners: vsphere_virtual_machine.vmm has no state, so skipping provisioners 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalMaybeTainted 2020/11/12 16:30:03 [TRACE] EvalMaybeTainted: vsphere_virtual_machine.vmm encountered an error during creation, so it is now marked as tainted 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalWriteState 2020/11/12 16:30:03 [TRACE] EvalWriteState: removing state object for vsphere_virtual_machine.vmm 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalIf 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalIf 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalWriteDiff 2020/11/12 16:30:03 [TRACE] eval: terraform.EvalApplyPost 2020/11/12 16:30:03 [ERROR] eval: terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing 2020/11/12 16:30:03 [ERROR] eval: terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/11/12 16:30:03 [TRACE] [walkApply] Exiting eval tree: vsphere_virtual_machine.vmm 2020/11/12 16:30:03 [TRACE] vertex "vsphere_virtual_machine.vmm": visit complete 2020/11/12 16:30:03 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping 2020/11/12 16:30:03 [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/hashicorp/vsphere\"] (close)" errored, so skipping 2020/11/12 16:30:03 [TRACE] dag/walk: upstream of "root" errored, so skipping 2020/11/12 16:30:03 [TRACE] statemgr.Filesystem: not making a backup, because the new snapshot is identical to the old 2020/11/12 16:30:03 [TRACE] statemgr.Filesystem: no state changes since last snapshot 2020/11/12 16:30:03 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate 2020/11/12 16:30:03 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info 2020/11/12 16:30:03 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock 2020-11-12T16:30:03.109-0500 [DEBUG] plugin: plugin exited

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform. A crash log has been placed at "crash.log" relative to your current working directory. It would be immensely helpful if you could please report the crash with Terraform1 so that we can fix this.

When reporting bugs, please include your terraform version. That information is available on the first line of crash.log. You can also get it by running 'terraform --version' on the command line.

SECURITY WARNING: the "crash.log" file that was created may contain sensitive information that must be redacted before it is safe to share on the issue tracker.

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Expected Behavior

create the vm by uploading ova file

Actual Behavior

it actually created the VM but it still crashed.

Steps to Reproduce

  1. terraform init
  2. terraform apply

Additional Context

no

References

no

ghost commented 3 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-vsphere#1260 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-vsphere#1260.

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.