-
Notifications
You must be signed in to change notification settings - Fork 114
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
trying to fetch data from nutnanix recovery plans but it is failing #566
Comments
I am using mac % sw_vers |
@bhatipradeep @ruknaankur can you pls check why plugin is getting crashed. |
@jatin9694 Will check and get back on this cc: @abhimutant |
Meanwhile @jatin9694 Is it possible to get sample .tf code block that you are using for fetching the recovery plans. Thank you |
data "nutanix_recovery_plans" "recovery_plans" { output.tf output "clusters" { I am trying to fetch one entity i have tried simple fetching as well with data.nutanix_recovery_plans.recovery_plans.entities.*.name but same error always. |
@jatin9694 I am not able to reproduce this issue with latest v1.8.0 and v1.7.0. Please share Terraform Logs after masking out internal details. Logs can be collected using |
please find the error from the log file . terraform version = terraform -v
nutanix_v1.7.1 TF_LOG=trace TF_LOG_PATH=tf.log terraform plan. 2023-03-14T09:51:39.050+0100 [INFO] provider.terraform-provider-nutanix_v1.7.1: 2023/03/14 09:51:39 [DEBUG] flattenEntityInfoList result: [map[entity_info_list:[map[categories:[map[name:RecoveryPlan value:Munich-CritIT-S1]]]]]]: timestamp=2023-03-14T09:51:39.050+0100 |
Is there any Also can you please try api call from outside terraform {
"filter": "",
"kind": "recovery_plan",
"length": 100
} |
Plugin did not respond
│ Error: Plugin did not respond
│
│ with data.nutanix_recovery_plans.recovery_plans,
│ on main.tf line 4, in data "nutanix_recovery_plans" "recovery_plans":
│ 4: data "nutanix_recovery_plans" "recovery_plans" {}
│
│ 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_v1.7.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x178bb62]
goroutine 113 [running]:
github.com/terraform-providers/terraform-provider-nutanix/nutanix.flattenRecoveryNetwork(0x0)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/resource_nutanix_recovery_plan.go:1290 +0x42
github.com/terraform-providers/terraform-provider-nutanix/nutanix.flattenNetworkMappingList({0xc000816ea0, 0x1, 0x196d32b})
github.com/terraform-providers/terraform-provider-nutanix/nutanix/resource_nutanix_recovery_plan.go:1272 +0x3b6
github.com/terraform-providers/terraform-provider-nutanix/nutanix.flattenParameters(0xc0009509f0)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/resource_nutanix_recovery_plan.go:1221 +0xdb
github.com/terraform-providers/terraform-provider-nutanix/nutanix.flattenRecoveryPlanEntities({0xc0004d8600, 0x5, 0xb})
github.com/terraform-providers/terraform-provider-nutanix/nutanix/data_source_recovery_plans.go:580 +0x37e
github.com/terraform-providers/terraform-provider-nutanix/nutanix.dataSourceNutanixRecoveryPlansRead({0x1a82e38, 0xc000900240}, 0x3a41878, {0x18140a0, 0xc0007117d0})
github.com/terraform-providers/terraform-provider-nutanix/nutanix/data_source_recovery_plans.go:558 +0x206
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0000d36c0, {0x1a82e38, 0xc000900240}, 0xc0006ec4e0, {0x18140a0, 0xc0007117d0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:358 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc0000d36c0, {0x1a82e38, 0xc000900240}, 0xc00099b300, {0x18140a0, 0xc0007117d0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:569 +0xf7
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc000446018, {0x1a82e38, 0xc000900240}, 0xc00007e2c0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1133 +0x3a8
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc000142f00, {0x1a82ee0, 0xc00043ea20}, 0xc000144b40)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:478 +0x37b
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x192c9c0, 0xc000142f00}, {0x1a82ee0, 0xc00043ea20}, 0xc000182ba0, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:416 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00015c700, {0x1a90c70, 0xc0001f6480}, 0xc0006ce000, 0xc0004c1ce0, 0x1fd6230, 0x0)
google.golang.org/[email protected]/server.go:1194 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc00015c700, {0x1a90c70, 0xc0001f6480}, 0xc0006ce000, 0x0)
google.golang.org/[email protected]/server.go:1517 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:859 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:857 +0x294
Error: The terraform-provider-nutanix_v1.7.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
The text was updated successfully, but these errors were encountered: