-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
When trying to disable private link in my BYOC cluster, the provider crashes:
error: rpc error: code = Unavailable desc = error reading from server: EOF:
Stack trace from the terraform-provider-redpanda_v1.0.1 plugin:
panic: field redpanda.api.controlplane.v1.ClusterUpdate.aws_private_link has invalid nil pointer
goroutine 177 [running]:
google.golang.org/protobuf/internal/impl.fieldInfoForMessage.func4({0x14000281958?}, {{}, 0x101772460?, 0x14000985df0?, 0x14000985c10?})
google.golang.org/protobuf@v1.36.6/internal/impl/message_reflect_field.go:365 +0x1bc
google.golang.org/protobuf/internal/impl.(*messageState).Set(0x1400053c180, {0x1017d5608?, 0x140000c9530?}, {{}, 0x101772460?, 0x14000985df0?, 0x0?})
google.golang.org/protobuf@v1.36.6/internal/impl/message_reflect_gen.go:97 +0xa0
github.com/redpanda-data/terraform-provider-redpanda/redpanda/utils.GenerateProtobufDiffAndUpdateMask[...](0x1400053c000, 0x1400053c0c0)
github.com/redpanda-data/terraform-provider-redpanda/redpanda/utils/protobuf.go:25 +0x1b0
github.com/redpanda-data/terraform-provider-redpanda/redpanda/resources/cluster.generateUpdateRequest({_, _}, {{0x2, {0x14000994420, 0x16}}, {0x2, {0x14000994408, 0x14}}, {0x2, {0x140004a68f0, ...}}, ...}, ...)
github.com/redpanda-data/terraform-provider-redpanda/redpanda/resources/cluster/proto_to_model.go:589 +0x1dc
github.com/redpanda-data/terraform-provider-redpanda/redpanda/resources/cluster.(*Cluster).Update(0x140006b4cc0, {0x1017c4198, 0x1400069cc30}, {{{{0x1017c92f0, 0x140007cd350}, {0x1015ff780, 0x140006dc8d0}}, {0x1017cd558, 0x14000135540}}, {{{0x1017c92f0, ...}, ...}, ...}, ...}, ...)
github.com/redpanda-data/terraform-provider-redpanda/redpanda/resources/cluster/resource_cluster.go:194 +0x190
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).UpdateResource(0x140003518c8, {0x1017c4198, 0x1400069cc30}, 0x1400050f428, 0x1400050f400)
github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/fwserver/server_updateresource.go:122 +0x53c
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ApplyResourceChange(0x140003518c8, {0x1017c4198, 0x1400069cc30}, 0x14000650460, 0x1400050f5f0)
github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/fwserver/server_applyresourcechange.go:102 +0x118
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ApplyResourceChange(0x140003518c8, {0x1017c4198?, 0x1400069cb10?}, 0x140006503c0)
github.com/hashicorp/terraform-plugin-framework@v1.14.1/internal/proto6server/server_applyresourcechange.go:55 +0x2e0
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0x14000339d60, {0x1017c4198?, 0x14000693e30?}, 0x14000268690)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov6/tf6server/server.go:866 +0x2a8
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0x10177d300, 0x14000339d60}, {0x1017c4198, 0x14000693e30}, 0x14000576080, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:611 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400019aa00, {0x1017c4198, 0x14000693da0}, 0x14000574120, 0x14000433920, 0x101fbcb38, 0x0)
google.golang.org/grpc@v1.71.0/server.go:1405 +0xca8
google.golang.org/grpc.(*Server).handleStream(0x1400019aa00, {0x1017c49c8, 0x140000c0000}, 0x14000574120)
google.golang.org/grpc@v1.71.0/server.go:1815 +0x910
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.71.0/server.go:1035 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 13
google.golang.org/grpc@v1.71.0/server.go:1046 +0x13c
Error: The terraform-provider-redpanda_v1.0.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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels