-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The provider starting giving us this error when we run a new deployment, but exiting deployments work.
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the
│ plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
Stack trace from the terraform-provider-bonsai_v1.0.2 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xa85e36]
goroutine 70 [running]:
[github.com/omc/terraform-provider-bonsai/internal/cluster.(*resource](http://github.com/omc/terraform-provider-bonsai/internal/cluster.(*resource)).Create(0xc000134148, {0xd49408, 0xc0004a5260}, {{{{0xd4de90, 0xc0004b14a0}, {0xb30ea0, 0xc0004b0cc0}}, {0xd4fe38, 0xc0003b6780}}, {{{0xd4de90, ...}, ...}, ...}, ...}, ...)
[github.com/omc/terraform-provider-bonsai/internal/cluster/resource.go:459](http://github.com/omc/terraform-provider-bonsai/internal/cluster/resource.go:459) +0x1516
[github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server](http://github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server)).CreateResource(0xc0000fb6c0, {0xd49408, 0xc0004a5260}, 0xc0004ff5e0, 0xc0004ff5b8)
[github.com/hashicorp/[email protected]/internal/fwserver/server_createresource.go:101](http://github.com/hashicorp/[email protected]/internal/fwserver/server_createresource.go:101) +0x578
[github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server](http://github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server)).ApplyResourceChange(0xc0000fb6c0, {0xd49408, 0xc0004a5260}, 0xc0003eb6d0, 0xc0004ff6d0)
[github.com/hashicorp/[email protected]/internal/fwserver/server_applyresourcechange.go:57](http://github.com/hashicorp/[email protected]/internal/fwserver/server_applyresourcechange.go:57) +0x4aa
[github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server](http://github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server)).ApplyResourceChange(0xc0000fb6c0, {0xd49408?, 0xc0004a5170?}, 0xc0003eb630)
[github.com/hashicorp/[email protected]/internal/proto6server/server_applyresourcechange.go:55](http://github.com/hashicorp/[email protected]/internal/proto6server/server_applyresourcechange.go:55) +0x38e
[github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server](http://github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server)).ApplyResourceChange(0xc00020ca00, {0xd49408?, 0xc0004a47e0?}, 0xc000418d20)
[github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:846](http://github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:846) +0x3d0
[github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler](http://github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler)({0xbff740, 0xc00020ca00}, {0xd49408, 0xc0004a47e0}, 0xc000068c80, 0x0)
[github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:518](http://github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:518) +0x1a6
[google.golang.org/grpc.(*Server](http://google.golang.org/grpc.(*Server)).processUnaryRPC(0xc0001b7000, {0xd49408, 0xc0004a4750}, {0xd4ede0, 0xc0003fc000}, 0xc000495d40, 0xc0002a9b90, 0x1235c78, 0x0)
[google.golang.org/[email protected]/server.go:1369](http://google.golang.org/[email protected]/server.go:1369) +0xdf8
[google.golang.org/grpc.(*Server](http://google.golang.org/grpc.(*Server)).handleStream(0xc0001b7000, {0xd4ede0, 0xc0003fc000}, 0xc000495d40)
[google.golang.org/[email protected]/server.go:1780](http://google.golang.org/[email protected]/server.go:1780) +0xe8b
[google.golang.org/grpc.(*Server](http://google.golang.org/grpc.(*Server)).serveStreams.func2.1()
[google.golang.org/[email protected]/server.go:1019](http://google.golang.org/[email protected]/server.go:1019) +0x8b
created by [google.golang.org/grpc.(*Server](http://google.golang.org/grpc.(*Server)).serveStreams.func2 in goroutine 23
[google.golang.org/[email protected]/server.go:1030](http://google.golang.org/[email protected]/server.go:1030) +0x125
Error: The terraform-provider-bonsai_v1.0.2 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.
# bonsai_cluster.cluster will be created
+ resource "bonsai_cluster" "cluster" {
+ access = {
+ host = (known after apply)
+ password = (sensitive value)
+ port = (known after apply)
+ scheme = (known after apply)
+ url = (sensitive value)
+ user = (sensitive value)
}
+ id = (known after apply)
+ message = (known after apply)
+ monitor = (known after apply)
+ name = "stage-common-data-store-use1"
+ plan = {
+ slug = "business-lg-2024"
+ uri = (known after apply)
}
+ release = {
+ package_name = (known after apply)
+ service_type = (known after apply)
+ slug = "opensearch-2.6.0-mt"
+ uri = (known after apply)
+ version = (known after apply)
}
+ slug = (known after apply)
+ space = {
+ path = "omc/bonsai/us-east-1/common"
+ region = (known after apply)
+ uri = (known after apply)
}
+ state = {
+ state = (known after apply)
}
+ stats = {
+ data_bytes_used = (known after apply)
+ docs = (known after apply)
+ shards_used = (known after apply)
}
+ uri = (known after apply)
}Metadata
Metadata
Assignees
Labels
No labels