Skip to content

Instantly share code, notes, and snippets.

@Spreadneck
Created February 6, 2025 17:26
Show Gist options
  • Save Spreadneck/8a843cd6afedec7d9dcf9ed761ac8653 to your computer and use it in GitHub Desktop.
Save Spreadneck/8a843cd6afedec7d9dcf9ed761ac8653 to your computer and use it in GitHub Desktop.
n.mcclur@UCBILDGENDEVX01 tf_ngt]$ terraform plan
data.nutanix_virtual_machines_v2.vm: Reading...
Planning failed. Terraform encountered an error while generating this plan.
│ Warning: Disabled Providers: foundation, ndb. Please provide required fields in provider configuration to enable them. Refer docs.
│ with provider["registry.terraform.io/nutanix/nutanix"],
│ on providers.tf line 12, in provider "nutanix":
│ 12: provider "nutanix" {
│ Error: Plugin did not respond
│ with data.nutanix_virtual_machines_v2.vm,
│ on main.tf line 1, in data "nutanix_virtual_machines_v2" "vm":
│ 1: data "nutanix_virtual_machines_v2" "vm"{
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadDataSource call. The plugin logs may contain more details.
Stack trace from the terraform-provider-nutanix_v2.0.0 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 31 [running]:
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmmv2.DatasourceNutanixVirtualMachinesV4Read({0x15de808?, 0xc0010d8b90?}, 0x7f38775886d8?, {0x11e1ce0?, 0xc0011a5880?})
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmmv2/data_source_nutanix_virtual_machines_v2.go:1304 +0x62d
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000600d20, {0x15de808, 0xc0010d8b90}, 0x0?, {0x11e1ce0, 0xc0011a5880})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:358 +0x11b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc000600d20, {0x15de808, 0xc0010d8b90}, 0xc000195000, {0x11e1ce0, 0xc0011a5880})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:569 +0xf1
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc000258090, {0x15de808, 0xc0010d8b90}, 0xc001207fa0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/grpc_provider.go:1133 +0x30c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc000294100, {0x15de7d0?, 0xc000da2f30?}, 0xc0010d8960)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/tf5server/server.go:478 +0x312
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x13b90e0?, 0xc000294100}, {0x15de7d0, 0xc000da2f30}, 0xc0013234a0, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:416 +0x169
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002df500, {0x15e30d0, 0xc000004000}, 0xc0001dc700, 0xc0009a9ad0, 0x1d53a70, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1194 +0xc95
google.golang.org/grpc.(*Server).handleStream(0xc0002df500, {0x15e30d0, 0xc000004000}, 0xc0001dc700, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0x9e7
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.32.0/server.go:859 +0x8d
created by google.golang.org/grpc.(*Server).serveStreams.func1 in goroutine 10
google.golang.org/grpc@v1.32.0/server.go:857 +0x246
Error: The terraform-provider-nutanix_v2.0.0 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment