You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a linux container using terraform-provider-proxmox version 3.0.1-rc4, the plugin crashes as follows:
Plan: 1 to add, 0 to change, 0 to destroy.
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-proxmox_v3.0.1-rc4 plugin:
panic: interface conversion: interface {} is string, not float64
goroutine 38 [running]:
github.com/Telmate/proxmox-api-go/proxmox.NewConfigLxcFromApi(0xc000802ff0, 0xc000802ff0?)
github.com/Telmate/[email protected]/proxmox/config_lxc.go:160 +0x1e85
github.com/Telmate/terraform-provider-proxmox/v2/proxmox._resourceLxcRead(0xc0005ce780, {0xbde960?, 0xc00007e640})
github.com/Telmate/terraform-provider-proxmox/v2/proxmox/resource_lxc.go:781 +0x20e
github.com/Telmate/terraform-provider-proxmox/v2/proxmox.resourceLxcRead(0x0?, {0xbde960?, 0xc00007e640?})
github.com/Telmate/terraform-provider-proxmox/v2/proxmox/resource_lxc.go:763 +0x1d
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xe753d8?, {0xe753d8?, 0xc000679b90?}, 0xd?, {0xbde960?, 0xc00007e640?})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:811 +0x163
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc00059eee0, {0xe753d8, 0xc000679b90}, 0xc0006b41a0, {0xbde960, 0xc00007e640})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1117 +0x552
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc00033c2d0, {0xe753d8?, 0xc000679aa0?}, 0xc000647440)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:708 +0x6ca
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc000242aa0, {0xe753d8?, 0xc000679050?}, 0xc000445260)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:783 +0x309
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0xd109e0?, 0xc000242aa0}, {0xe753d8, 0xc000679050}, 0xc00027ff80, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:482 +0x169
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000e3800, {0xe753d8, 0xc000678f90}, {0xe79498, 0xc00023e480}, 0xc000704000, 0xc0005bc090, 0x13d3da8, 0x0)
google.golang.org/[email protected]/server.go:1369 +0xe23
google.golang.org/grpc.(*Server).handleStream(0xc0000e3800, {0xe79498, 0xc00023e480}, 0xc000704000)
google.golang.org/[email protected]/server.go:1780 +0x1016
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 51
google.golang.org/[email protected]/server.go:1030 +0x135
Error: The terraform-provider-proxmox_v3.0.1-rc4 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.
While there is another recently filed (issue #1113), that issue is filed in version 2 of the provider and it is noted that one should use version 3. As noted, this is also present there.
terraform providers
Providers required by configuration:
.
└── provider[registry.terraform.io/telmate/proxmox] 3.0.1-rc4
Providers required by state:
provider[registry.terraform.io/telmate/proxmox]
I placed HTTP-Toolkit as a proxy between my Terraform CLI and Proxmox and performed a Terraform apply. In doing so, I found the following APIs being called:
Because that is an unused VM, I decided to delete it and test. I am now able to create containers via Terraform without issue (I've created 2 - the first one numbered itself as 105, the second as 127.
I'm not clear what about 105 caused the issue, but the problem appears to now be resolved.
When attempting to create a linux container using terraform-provider-proxmox version 3.0.1-rc4, the plugin crashes as follows:
While there is another recently filed (issue #1113), that issue is filed in version 2 of the provider and it is noted that one should use version 3. As noted, this is also present there.
Proxmox version: 8.2.2
Example that can be used to replicate:
The text was updated successfully, but these errors were encountered: