Skip to content

Instantly share code, notes, and snippets.

@mikisvaz
Last active March 28, 2023 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikisvaz/47ae9b3d9bb93412ff286d1047bc1cc1 to your computer and use it in GitHub Desktop.
Save mikisvaz/47ae9b3d9bb93412ff286d1047bc1cc1 to your computer and use it in GitHub Desktop.
DEBUG output for issue "Can't destroy or refresh failed host"
2023-03-28T20:09:37.031+0200 [INFO] Terraform version: 1.2.9
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2023-03-28T20:09:37.031+0200 [INFO] Go runtime version: go1.18.1
2023-03-28T20:09:37.031+0200 [INFO] CLI args: []string{"terraform", "destroy"}
2023-03-28T20:09:37.032+0200 [DEBUG] Attempting to open CLI config file: /home/miki/.terraformrc
2023-03-28T20:09:37.032+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-03-28T20:09:37.032+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-03-28T20:09:37.032+0200 [DEBUG] ignoring non-existing provider search directory /home/miki/.terraform.d/plugins
2023-03-28T20:09:37.032+0200 [DEBUG] ignoring non-existing provider search directory /home/miki/.local/share/terraform/plugins
2023-03-28T20:09:37.032+0200 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2023-03-28T20:09:37.032+0200 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2023-03-28T20:09:37.032+0200 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2023-03-28T20:09:37.032+0200 [INFO] CLI command args: []string{"destroy"}
2023-03-28T20:09:37.033+0200 [DEBUG] New state was assigned lineage "54195723-6761-2612-49d1-cb8dd95cc385"
2023-03-28T20:09:37.070+0200 [DEBUG] checking for provisioner in "."
2023-03-28T20:09:37.071+0200 [DEBUG] checking for provisioner in "/usr/bin"
2023-03-28T20:09:37.072+0200 [INFO] backend/local: starting Apply operation
2023-03-28T20:09:37.073+0200 [DEBUG] created provider logger: level=debug
2023-03-28T20:09:37.073+0200 [INFO] provider: configuring client automatic mTLS
2023-03-28T20:09:37.088+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 args=[.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0]
2023-03-28T20:09:37.089+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 pid=10458
2023-03-28T20:09:37.089+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0
2023-03-28T20:09:37.097+0200 [INFO] provider.terraform-provider-opennebula_v1.2.0: configuring server automatic mTLS: timestamp=2023-03-28T20:09:37.097+0200
2023-03-28T20:09:37.113+0200 [DEBUG] provider.terraform-provider-opennebula_v1.2.0: plugin address: address=/tmp/plugin183222065 network=unix timestamp=2023-03-28T20:09:37.113+0200
2023-03-28T20:09:37.113+0200 [DEBUG] provider: using plugin: version=5
2023-03-28T20:09:37.146+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2023-03-28T20:09:37.147+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 pid=10458
2023-03-28T20:09:37.147+0200 [DEBUG] provider: plugin exited
2023-03-28T20:09:37.147+0200 [DEBUG] Building and walking validate graph
2023-03-28T20:09:37.147+0200 [DEBUG] ProviderTransformer: "opennebula_host.this" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/opennebula/opennebula"]
2023-03-28T20:09:37.147+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/opennebula/opennebula\"]" references: []
2023-03-28T20:09:37.147+0200 [DEBUG] ReferenceTransformer: "opennebula_host.this" references: []
2023-03-28T20:09:37.147+0200 [DEBUG] Starting graph walk: walkValidate
2023-03-28T20:09:37.148+0200 [DEBUG] created provider logger: level=debug
2023-03-28T20:09:37.148+0200 [INFO] provider: configuring client automatic mTLS
2023-03-28T20:09:37.163+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 args=[.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0]
2023-03-28T20:09:37.163+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 pid=10470
2023-03-28T20:09:37.163+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0
2023-03-28T20:09:37.169+0200 [INFO] provider.terraform-provider-opennebula_v1.2.0: configuring server automatic mTLS: timestamp=2023-03-28T20:09:37.169+0200
2023-03-28T20:09:37.186+0200 [DEBUG] provider: using plugin: version=5
2023-03-28T20:09:37.186+0200 [DEBUG] provider.terraform-provider-opennebula_v1.2.0: plugin address: address=/tmp/plugin4152410192 network=unix timestamp=2023-03-28T20:09:37.186+0200
2023-03-28T20:09:37.218+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2023-03-28T20:09:37.219+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 pid=10470
2023-03-28T20:09:37.219+0200 [DEBUG] provider: plugin exited
2023-03-28T20:09:37.219+0200 [INFO] backend/local: apply calling Plan
2023-03-28T20:09:37.219+0200 [DEBUG] Building and walking plan graph for NormalMode
2023-03-28T20:09:37.219+0200 [DEBUG] ProviderTransformer: "opennebula_host.this (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/opennebula/opennebula"]
2023-03-28T20:09:37.219+0200 [DEBUG] ReferenceTransformer: "opennebula_host.this (expand)" references: []
2023-03-28T20:09:37.219+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/opennebula/opennebula\"]" references: []
2023-03-28T20:09:37.219+0200 [DEBUG] Starting graph walk: walkPlan
2023-03-28T20:09:37.220+0200 [DEBUG] created provider logger: level=debug
2023-03-28T20:09:37.220+0200 [INFO] provider: configuring client automatic mTLS
2023-03-28T20:09:37.235+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 args=[.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0]
2023-03-28T20:09:37.235+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 pid=10484
2023-03-28T20:09:37.235+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0
2023-03-28T20:09:37.252+0200 [INFO] provider.terraform-provider-opennebula_v1.2.0: configuring server automatic mTLS: timestamp=2023-03-28T20:09:37.252+0200
2023-03-28T20:09:37.268+0200 [DEBUG] provider.terraform-provider-opennebula_v1.2.0: plugin address: address=/tmp/plugin8614675 network=unix timestamp=2023-03-28T20:09:37.268+0200
2023-03-28T20:09:37.268+0200 [DEBUG] provider: using plugin: version=5
2023-03-28T20:09:37.296+0200 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/opennebula/opennebula\"]" changed the config value, but that value is unused
2023-03-28T20:09:37.407+0200 [INFO] provider.terraform-provider-opennebula_v1.2.0: 2023/03/28 20:09:37 [INFO] OpenNebula version: 6.4.0: timestamp=2023-03-28T20:09:37.406+0200
2023-03-28T20:09:37.407+0200 [DEBUG] ReferenceTransformer: "opennebula_host.this" references: []
opennebula_host.this: Refreshing state... [id=74]
2023-03-28T20:09:37.498+0200 [ERROR] provider.terraform-provider-opennebula_v1.2.0: Response contains error diagnostic: @module=sdk.proto diagnostic_detail="host (ID: 74): Template GetPair: key DEPLOYMENT_ID not found" diagnostic_summary="Failed to get tag from the host template" tf_proto_version=5.3 tf_provider_addr=provider tf_req_id=fe204138-c516-eb3e-08fa-a3344e895e18 tf_resource_type=opennebula_host tf_rpc=ReadResource @caller=github.com/hashicorp/terraform-plugin-go@v0.14.1/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_severity=ERROR timestamp=2023-03-28T20:09:37.498+0200
2023-03-28T20:09:37.499+0200 [ERROR] vertex "opennebula_host.this" error: Failed to get tag from the host template
2023-03-28T20:09:37.499+0200 [ERROR] vertex "opennebula_host.this" error: Failed to get tag from the host template
2023-03-28T20:09:37.499+0200 [ERROR] vertex "opennebula_host.this (expand)" error: Failed to get tag from the host template
│ Error: Failed to get tag from the host template
│ with opennebula_host.this,
│ on main.tf line 14, in resource "opennebula_host" "this":
│ 14: resource "opennebula_host" "this" {
│ host (ID: 74): Template GetPair: key DEPLOYMENT_ID not found
2023-03-28T20:09:37.501+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2023-03-28T20:09:37.502+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/opennebula/opennebula/1.2.0/linux_amd64/terraform-provider-opennebula_v1.2.0 pid=10484
2023-03-28T20:09:37.502+0200 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment