Telmate / terraform-provider-proxmox

Terraform provider plugin for proxmox
MIT License
2.19k stars 531 forks source link

panic: interface conversion: interface {} is string, not float64 #1052

Closed wsd-thussain closed 4 months ago

wsd-thussain commented 4 months ago

[root@build operation-tf-proxmox]# terraform apply 2024-07-03T23:39:32.201+0100 [INFO] Terraform version: 1.9.1 2024-07-03T23:39:32.201+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.51.0 2024-07-03T23:39:32.201+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0 2024-07-03T23:39:32.201+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1 2024-07-03T23:39:32.201+0100 [DEBUG] using github.com/zclconf/go-cty v1.14.4 2024-07-03T23:39:32.201+0100 [INFO] Go runtime version: go1.22.4 2024-07-03T23:39:32.201+0100 [INFO] CLI args: []string{"terraform", "apply"} 2024-07-03T23:39:32.201+0100 [DEBUG] Attempting to open CLI config file: /root/.terraformrc 2024-07-03T23:39:32.201+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2024-07-03T23:39:32.201+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins 2024-07-03T23:39:32.201+0100 [DEBUG] ignoring non-existing provider search directory /root/.terraform.d/plugins 2024-07-03T23:39:32.201+0100 [DEBUG] ignoring non-existing provider search directory /root/.local/share/terraform/plugins 2024-07-03T23:39:32.201+0100 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins 2024-07-03T23:39:32.201+0100 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins 2024-07-03T23:39:32.201+0100 [INFO] CLI command args: []string{"apply"} 2024-07-03T23:39:32.269+0100 [DEBUG] checking for provisioner in "." 2024-07-03T23:39:32.271+0100 [DEBUG] checking for provisioner in "/usr/bin" 2024-07-03T23:39:32.272+0100 [INFO] backend/local: starting Apply operation 2024-07-03T23:39:32.273+0100 [DEBUG] created provider logger: level=debug 2024-07-03T23:39:32.273+0100 [INFO] provider: configuring client automatic mTLS 2024-07-03T23:39:32.286+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 args=[".terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14"] 2024-07-03T23:39:32.286+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 pid=554671 2024-07-03T23:39:32.286+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 2024-07-03T23:39:32.290+0100 [INFO] provider.terraform-provider-proxmox_v2.9.14: configuring server automatic mTLS: timestamp="2024-07-03T23:39:32.290+0100" 2024-07-03T23:39:32.313+0100 [DEBUG] provider: using plugin: version=5 2024-07-03T23:39:32.313+0100 [DEBUG] provider.terraform-provider-proxmox_v2.9.14: plugin address: address=/tmp/plugin3811349114 network=unix timestamp="2024-07-03T23:39:32.313+0100" 2024-07-03T23:39:32.331+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2024-07-03T23:39:32.332+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 id=554671 2024-07-03T23:39:32.332+0100 [DEBUG] provider: plugin exited 2024-07-03T23:39:32.332+0100 [DEBUG] Building and walking validate graph 2024-07-03T23:39:32.333+0100 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/telmate/proxmox"], implied first by module.proxmox_vms.proxmox_vm_qemu.vm 2024-07-03T23:39:32.333+0100 [DEBUG] ProviderTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm" (terraform.NodeValidatableResource) needs module.proxmox_vms.provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:39:32.333+0100 [DEBUG] pruning unused provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_password (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_tls_insecure (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_api_url (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.output.vm_ids (expand)" references: [module.proxmox_vms.proxmox_vm_qemu.vm] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.output.vm_ips (expand)" references: [module.proxmox_vms.proxmox_vm_qemu.vm] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms (close)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.template (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.bridge (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.provider[\"registry.terraform.io/telmate/proxmox\"]" references: [module.proxmox_vms.var.pm_tls_insecure (expand) module.proxmox_vms.var.pm_api_url (expand) module.proxmox_vms.var.pm_user (expand) module.proxmox_vms.var.pm_password (expand)] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm" references: [module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.target_node (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.template (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.bridge (expand)] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_user (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.target_node (expand)" references: [] 2024-07-03T23:39:32.333+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.vms (expand)" references: [] 2024-07-03T23:39:32.334+0100 [DEBUG] Starting graph walk: walkValidate 2024-07-03T23:39:32.335+0100 [DEBUG] created provider logger: level=debug 2024-07-03T23:39:32.335+0100 [INFO] provider: configuring client automatic mTLS 2024-07-03T23:39:32.340+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 args=[".terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14"] 2024-07-03T23:39:32.340+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 pid=554681 2024-07-03T23:39:32.340+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 2024-07-03T23:39:32.345+0100 [INFO] provider.terraform-provider-proxmox_v2.9.14: configuring server automatic mTLS: timestamp="2024-07-03T23:39:32.345+0100" 2024-07-03T23:39:32.366+0100 [DEBUG] provider: using plugin: version=5 2024-07-03T23:39:32.366+0100 [DEBUG] provider.terraform-provider-proxmox_v2.9.14: plugin address: address=/tmp/plugin4053117393 network=unix timestamp="2024-07-03T23:39:32.366+0100" 2024-07-03T23:39:32.384+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2024-07-03T23:39:32.384+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 id=554681 2024-07-03T23:39:32.384+0100 [DEBUG] provider: plugin exited 2024-07-03T23:39:32.385+0100 [INFO] backend/local: apply calling Plan 2024-07-03T23:39:32.385+0100 [DEBUG] Building and walking plan graph for NormalMode 2024-07-03T23:39:32.385+0100 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/telmate/proxmox"], implied first by module.proxmox_vms.proxmox_vm_qemu.vm (expand) 2024-07-03T23:39:32.385+0100 [DEBUG] ProviderTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm (expand)" (terraform.nodeExpandPlannableResource) needs module.proxmox_vms.provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:39:32.385+0100 [DEBUG] pruning unused provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:39:32.385+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.provider[\"registry.terraform.io/telmate/proxmox\"]" references: [module.proxmox_vms.var.pm_user (expand) module.proxmox_vms.var.pm_password (expand) module.proxmox_vms.var.pm_api_url (expand) module.proxmox_vms.var.pm_tls_insecure (expand)] 2024-07-03T23:39:32.385+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_api_url (expand)" references: [] 2024-07-03T23:39:32.385+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_user (expand)" references: [] 2024-07-03T23:39:32.385+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_tls_insecure (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.output.vm_ips (expand)" references: [module.proxmox_vms.proxmox_vm_qemu.vm (expand)] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms (close)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.vms (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.target_node (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.template (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.bridge (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm (expand)" references: [module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.template (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.target_node (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.bridge (expand)] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_password (expand)" references: [] 2024-07-03T23:39:32.386+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.output.vm_ids (expand)" references: [module.proxmox_vms.proxmox_vm_qemu.vm (expand)] 2024-07-03T23:39:32.387+0100 [DEBUG] Starting graph walk: walkPlan 2024-07-03T23:39:32.388+0100 [DEBUG] created provider logger: level=debug 2024-07-03T23:39:32.388+0100 [INFO] provider: configuring client automatic mTLS 2024-07-03T23:39:32.394+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 args=[".terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14"] 2024-07-03T23:39:32.394+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 pid=554690 2024-07-03T23:39:32.394+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 2024-07-03T23:39:32.400+0100 [INFO] provider.terraform-provider-proxmox_v2.9.14: configuring server automatic mTLS: timestamp="2024-07-03T23:39:32.400+0100" 2024-07-03T23:39:32.424+0100 [DEBUG] provider: using plugin: version=5 2024-07-03T23:39:32.424+0100 [DEBUG] provider.terraform-provider-proxmox_v2.9.14: plugin address: address=/tmp/plugin951583830 network=unix timestamp="2024-07-03T23:39:32.424+0100" 2024-07-03T23:39:32.438+0100 [WARN] ValidateProviderConfig from "module.proxmox_vms.provider[\"registry.terraform.io/telmate/proxmox\"]" changed the config value, but that value is unused 2024-07-03T23:39:32.474+0100 [DEBUG] Resource instance state not found for node "module.proxmox_vms.proxmox_vm_qemu.vm[1]", instance module.proxmox_vms.proxmox_vm_qemu.vm[1] 2024-07-03T23:39:32.474+0100 [DEBUG] Resource instance state not found for node "module.proxmox_vms.proxmox_vm_qemu.vm[0]", instance module.proxmox_vms.proxmox_vm_qemu.vm[0] 2024-07-03T23:39:32.474+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm[0]" references: [] 2024-07-03T23:39:32.474+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm[1]" references: [] 2024-07-03T23:39:32.475+0100 [DEBUG] refresh: module.proxmox_vms.proxmox_vm_qemu.vm[0]: no state, so not refreshing 2024-07-03T23:39:32.475+0100 [DEBUG] refresh: module.proxmox_vms.proxmox_vm_qemu.vm[1]: no state, so not refreshing 2024-07-03T23:39:32.481+0100 [WARN] Provider "registry.terraform.io/telmate/proxmox" produced an invalid plan for module.proxmox_vms.proxmox_vm_qemu.vm[0], 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:

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:

Terraform will perform the following actions:

module.proxmox_vms.proxmox_vm_qemu.vm[0] will be created

Plan: 2 to add, 0 to change, 0 to destroy. 2024-07-03T23:39:32.492+0100 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"

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

2024-07-03T23:40:58.773+0100 [INFO] backend/local: apply calling Apply 2024-07-03T23:40:58.773+0100 [DEBUG] Building and walking apply graph for NormalMode plan 2024-07-03T23:40:58.774+0100 [DEBUG] Resource state not found for node "module.proxmox_vms.proxmox_vm_qemu.vm[0]", instance module.proxmox_vms.proxmox_vm_qemu.vm[0] 2024-07-03T23:40:58.774+0100 [DEBUG] Resource state not found for node "module.proxmox_vms.proxmox_vm_qemu.vm[1]", instance module.proxmox_vms.proxmox_vm_qemu.vm[1] 2024-07-03T23:40:58.774+0100 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/telmate/proxmox"], implied first by module.proxmox_vms.proxmox_vm_qemu.vm[1] 2024-07-03T23:40:58.774+0100 [DEBUG] ProviderTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm[0]" (terraform.NodeApplyableResourceInstance) needs module.proxmox_vms.provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:40:58.774+0100 [DEBUG] ProviderTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm[1]" (terraform.NodeApplyableResourceInstance) needs module.proxmox_vms.provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:40:58.774+0100 [DEBUG] ProviderTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm (expand)" (*terraform.nodeExpandApplyableResource) needs module.proxmox_vms.provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:40:58.774+0100 [DEBUG] pruning unused provider["registry.terraform.io/telmate/proxmox"] 2024-07-03T23:40:58.774+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms (close)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.vms (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_password (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_tls_insecure (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.target_node (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.output.vm_ids (expand)" references: [module.proxmox_vms.proxmox_vm_qemu.vm[0] module.proxmox_vms.proxmox_vm_qemu.vm (expand) module.proxmox_vms.proxmox_vm_qemu.vm[1]] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.template (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.output.vm_ips (expand)" references: [module.proxmox_vms.proxmox_vm_qemu.vm[0] module.proxmox_vms.proxmox_vm_qemu.vm (expand) module.proxmox_vms.proxmox_vm_qemu.vm[1]] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_api_url (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm[0]" references: [module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.target_node (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.template (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.bridge (expand)] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm (expand)" references: [module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.template (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.target_node (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.bridge (expand)] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.pm_user (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.var.bridge (expand)" references: [] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.proxmox_vm_qemu.vm[1]" references: [module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.target_node (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.template (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.vms (expand) module.proxmox_vms.var.bridge (expand)] 2024-07-03T23:40:58.775+0100 [DEBUG] ReferenceTransformer: "module.proxmox_vms.provider[\"registry.terraform.io/telmate/proxmox\"]" references: [module.proxmox_vms.var.pm_api_url (expand) module.proxmox_vms.var.pm_user (expand) module.proxmox_vms.var.pm_password (expand) module.proxmox_vms.var.pm_tls_insecure (expand)] 2024-07-03T23:40:58.776+0100 [DEBUG] pruneUnusedNodes: module.proxmox_vms.output.vm_ids (expand) is no longer needed, removing 2024-07-03T23:40:58.776+0100 [DEBUG] pruneUnusedNodes: module.proxmox_vms.output.vm_ips (expand) is no longer needed, removing 2024-07-03T23:40:58.776+0100 [DEBUG] Starting graph walk: walkApply 2024-07-03T23:40:58.777+0100 [DEBUG] created provider logger: level=debug 2024-07-03T23:40:58.777+0100 [INFO] provider: configuring client automatic mTLS 2024-07-03T23:40:58.783+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 args=[".terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14"] 2024-07-03T23:40:58.783+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 pid=554701 2024-07-03T23:40:58.783+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/telmate/proxmox/2.9.14/linux_amd64/terraform-provider-proxmox_v2.9.14 2024-07-03T23:40:58.788+0100 [INFO] provider.terraform-provider-proxmox_v2.9.14: configuring server automatic mTLS: timestamp="2024-07-03T23:40:58.788+0100" 2024-07-03T23:40:58.814+0100 [DEBUG] provider: using plugin: version=5 2024-07-03T23:40:58.814+0100 [DEBUG] provider.terraform-provider-proxmox_v2.9.14: plugin address: network=unix address=/tmp/plugin3344950665 timestamp="2024-07-03T23:40:58.814+0100" 2024-07-03T23:40:58.831+0100 [WARN] ValidateProviderConfig from "module.proxmox_vms.provider[\"registry.terraform.io/telmate/proxmox\"]" changed the config value, but that value is unused 2024-07-03T23:40:58.884+0100 [WARN] Provider "registry.terraform.io/telmate/proxmox" produced an invalid plan for module.proxmox_vms.proxmox_vm_qemu.vm[0], 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:

Stack trace from the terraform-provider-proxmox_v2.9.14 plugin:

panic: interface conversion: interface {} is string, not float64

goroutine 59 [running]: github.com/Telmate/proxmox-api-go/proxmox.NewConfigQemuFromApi(0xc00059c718, 0xc9d509?) github.com/Telmate/proxmox-api-go@v0.0.0-20230319185744-e7cde7198cdf/proxmox/config_qemu.go:584 +0x4605 github.com/Telmate/terraform-provider-proxmox/proxmox.resourceVmQemuCreate(0xc000472400, {0xb66f60?, 0xc00051e190}) github.com/Telmate/terraform-provider-proxmox/proxmox/resource_vm_qemu.go:972 +0x2c4d github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(Resource).create(0xdd7840?, {0xdd7840?, 0xc000504000?}, 0xd?, {0xb66f60?, 0xc00051e190?}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.25.0/helper/schema/resource.go:695 +0x178 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(Resource).Apply(0xc000160ee0, {0xdd7840, 0xc000504000}, 0xc0000c8000, 0xc000472200, {0xb66f60, 0xc00051e190}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.25.0/helper/schema/resource.go:837 +0xa85 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(GRPCProviderServer).ApplyResourceChange(0xc0003e5ea8, {0xdd7840?, 0xc0005ed1a0?}, 0xc0003f0aa0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.25.0/helper/schema/grpc_provider.go:1021 +0xe8d github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(server).ApplyResourceChange(0xc0002703c0, {0xdd7840?, 0xc00050c2a0?}, 0xc00048a2a0) github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/tf5server/server.go:818 +0x574 github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xc6bc20?, 0xc0002703c0}, {0xdd7840, 0xc00050c2a0}, 0xc00048a150, 0x0) github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170 google.golang.org/grpc.(Server).processUnaryRPC(0xc0002101e0, {0xddb420, 0xc00041e820}, 0xc0005f79e0, 0xc0003f3920, 0x128f7a0, 0x0) google.golang.org/grpc@v1.53.0/server.go:1336 +0xd23 google.golang.org/grpc.(Server).handleStream(0xc0002101e0, {0xddb420, 0xc00041e820}, 0xc0005f79e0, 0x0) google.golang.org/grpc@v1.53.0/server.go:1704 +0xa2f google.golang.org/grpc.(Server).serveStreams.func1.2() google.golang.org/grpc@v1.53.0/server.go:965 +0x98 created by google.golang.org/grpc.(Server).serveStreams.func1 google.golang.org/grpc@v1.53.0/server.go:963 +0x28a

Error: The terraform-provider-proxmox_v2.9.14 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely helpful if you could report the crash with the plugin's maintainers so that it can be fixed. The output above should help diagnose the issue.

2024-07-03T23:41:33.141+0100 [DEBUG] provider: plugin exited

wsd-thussain commented 4 months ago

any help greatly appreciated

schrmm commented 4 months ago

I don't know which one, but at least one of your number values should be surrounded by "" to become a string.

Tinyblargon commented 4 months ago

@wsd-thussain 2.x is currently broken, and fixing it requires breaking schanges see release 3.0RC3

wsd-thussain commented 4 months ago

thanks 3.0RC3 works fine thanks