-
Notifications
You must be signed in to change notification settings - Fork 272
Description
Terraform Version
1.10.5
Terraform Grafana Provider Version
4.21.0
Grafana Version
Grafana Cloud
Affected Resource(s)
While trying to import and alert rule I got the following error:
Stack trace from the terraform-provider-grafana_v4.20.1 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x270 pc=0x15d3584]
goroutine 42 [running]:
internal/sync.(*Mutex).Lock(...)
internal/sync/mutex.go:63
sync.(*Mutex).Lock(...)
sync/mutex.go:46
github.com/grafana/grafana-app-sdk/k8s.(*ClientRegistry).getClient(0x0, {{0x3a37938?, 0xc0007ac000?}, 0xc00071f620?})
github.com/grafana/[email protected]/k8s/client_registry.go:111 +0x84
github.com/grafana/grafana-app-sdk/k8s.(*ClientRegistry).ClientFor(0x0, {{0x3a37938, 0xc0007ac000}, 0xc00071f620})
github.com/grafana/[email protected]/k8s/client_registry.go:83 +0x91
github.com/grafana/terraform-provider-grafana/v4/internal/resources/appplatform.(*Resource[...]).Configure(0x3a64360, {0x0, 0x0?}, {{0x2e8a8c0?, 0xc00074c340?}}, 0xc0001a2768?)
github.com/grafana/terraform-provider-grafana/v4/internal/resources/appplatform/resource.go:213 +0x93
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ImportResourceState(0xc0007ea488, {0x3a257e0, 0xc0007d75f0}, 0xc0004224d0, 0xc0006d3490)
github.com/hashicorp/[email protected]/internal/fwserver/server_importresourcestate.go:90 +0x4e3
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ImportResourceState(0xc0007ea488, {0x3a257e0?, 0xc0007d7500?}, 0xc0007d7560)
github.com/hashicorp/[email protected]/internal/proto6server/server_importresourcestate.go:47 +0x2a5
github.com/hashicorp/terraform-plugin-mux/tf6to5server.v6tov5Server.ImportResourceState({{0x3a52650?, 0xc0007ea488?}}, {0x3a257e0?, 0xc0007d7500?}, 0xc0007c5920?)
github.com/hashicorp/[email protected]/tf6to5server/tf6to5server.go:127 +0x11a
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ImportResourceState(0xc0005f5780, {0x3a257e0?, 0xc0007c5980?}, 0xc0007c5920)
github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ImportResourceState.go:36 +0x18d
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ImportResourceState(0xc00074fa40, {0x3a257e0?, 0xc0007c4ed0?}, 0xc000a94aa0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:897 +0x245
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ImportResourceState_Handler({0x3380ae0, 0xc00074fa40}, {0x3a257e0, 0xc0007c4ed0}, 0xc000a97580, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:629 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000216c00, {0x3a257e0, 0xc0007c4e40}, 0xc00068f080, 0xc0008bfa10, 0x5981af0, 0x0)
google.golang.org/[email protected]/server.go:1431 +0xfe8
google.golang.org/grpc.(*Server).handleStream(0xc000216c00, {0x3a26fd8, 0xc00072c1a0}, 0xc00068f080)
google.golang.org/[email protected]/server.go:1842 +0xb95
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1061 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 59
google.golang.org/[email protected]/server.go:1072 +0x11d
Error: The terraform-provider-grafana_v4.20.1 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.
Terraform Configuration Files
No response
Expected Behavior
No response
Actual Behavior
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response