Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boilerplate Terraform+Proxmox code crashes Terraform with terraform-provider-proxmox_v2.9.14 #573

Open
LocalAutomator opened this issue Dec 5, 2024 · 1 comment
Assignees
Labels
problem Fixing a problem

Comments

@LocalAutomator
Copy link

Description

[Provide a clear and concise description of the issue]

Steps to Reproduce

  1. Using the code in boilerplates/terraform/proxmox
  2. Replaced variables as needed
  3. Code passed terraform fmt and terraform validate commands.
  4. Ran terraform apply

Expected Behavior

I expected the Terraform code to successfully and without error, deploy one new VM in my Proxmox host.

Actual Behavior

While the VM is created in Proxmox, however Terraform crashes before completion and State is not available.

│ Error: Plugin did not respond
│
│   with proxmox_vm_qemu.your-vm,
│   on full-clone.tf line 5, in resource "proxmox_vm_qemu" "your-vm":
│    5: resource "proxmox_vm_qemu" "your-vm" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange
│ call. The plugin logs may contain more details.
╵

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

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

goroutine 86 [running]:
github.com/Telmate/proxmox-api-go/proxmox.NewConfigQemuFromApi(0x140003ce6e0, 0x101462ab6?)
	github.com/Telmate/[email protected]/proxmox/config_qemu.go:584 +0x3b34
github.com/Telmate/terraform-provider-proxmox/proxmox.resourceVmQemuCreate(0x14000139380, {0x1015ddee0?, 0x14000047c20})
	github.com/Telmate/terraform-provider-proxmox/proxmox/resource_vm_qemu.go:972 +0x21cc
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x10171a9a0?, {0x10171a9a0?, 0x14000381770?}, 0xd?, {0x1015ddee0?, 0x14000047c20?})
	github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:695 +0x134
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x140001f6ee0, {0x10171a9a0, 0x14000381770}, 0x14000119380, 0x14000139200, {0x1015ddee0, 0x14000047c20})
	github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0x86c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x1400047df50, {0x10171a9a0?, 0x14000381650?}, 0x140000948c0)
	github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xb70
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x14000340320, {0x10171a9a0?, 0x14000380690?}, 0x140001f0070)
	github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x3b8
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1016e3a60?, 0x14000340320}, {0x10171a9a0, 0x14000380690}, 0x140001f0000, 0x0)
	github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0x140002c41e0, {0x10171e540, 0x1400008a4e0}, 0x140005a4000, 0x1400048b860, 0x101bbb860, 0x0)
	google.golang.org/[email protected]/server.go:1336 +0xb7c
google.golang.org/grpc.(*Server).handleStream(0x140002c41e0, {0x10171e540, 0x1400008a4e0}, 0x140005a4000, 0x0)
	google.golang.org/[email protected]/server.go:1704 +0x82c
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	google.golang.org/[email protected]/server.go:965 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func1
	google.golang.org/[email protected]/server.go:963 +0x290

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.

Screenshots

[If applicable, add screenshots to help explain the issue]

Additional Information

I have tested this with Terraform installed from Brew and the Terraform binary

Environment

macOS Sequoia 15.1.1
Terraform v1.9.8
on darwin_arm64

  • provider registry.terraform.io/telmate/proxmox v2.9.14
@ChristianLempa ChristianLempa self-assigned this Dec 5, 2024
@ChristianLempa ChristianLempa added the problem Fixing a problem label Dec 5, 2024
@ChristianLempa
Copy link
Owner

Will be fixed in #555

@ChristianLempa ChristianLempa changed the title Boilierplate Terraform+Proxmox code crashes Terraform with terraform-provider-proxmox_v2.9.14 Boilerplate Terraform+Proxmox code crashes Terraform with terraform-provider-proxmox_v2.9.14 Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Fixing a problem
Projects
None yet
Development

No branches or pull requests

2 participants