generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What is the bug?
provider is crashing while doing the terraform plan. This started to happen in an existing terraform project, where opensearch_user, opensearch_roles_mapping and opensearch_index were already created and present in the terraform project.
Here's the log:
Stack trace from the terraform-provider-opensearch_v2.3.2 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 107 [running]:
github.com/opensearch-project/terraform-provider-opensearch/provider.resourceOpensearchIndexRead(0x14000850180, {0x1052d9aa0, 0x14000592160})
github.com/opensearch-project/terraform-provider-opensearch/provider/resource_opensearch_index.go:832 +0x97c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x1054e4b98?, {0x1054e4b98?, 0x1400080f200?}, 0xd?, {0x1052d9aa0?, 0x14000592160?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.0/helper/schema/resource.go:843 +0x130
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0x14000118d00, {0x1054e4b98, 0x1400080f200}, 0x1400073cd00, {0x1052d9aa0, 0x14000592160})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.0/helper/schema/resource.go:1149 +0x408
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0x14000206408, {0x1054e4b98?, 0x1400080f140?}, 0x1400051d780)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.0/helper/schema/grpc_provider.go:739 +0x5b8
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0x14000641ea0, {0x1054e4b98?, 0x1400080e960?}, 0x140001e5ce0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/tf5server/server.go:784 +0x228
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0x10549a440, 0x14000641ea0}, {0x1054e4b98, 0x1400080e960}, 0x140006b5e80, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:575 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x140006c6200, {0x1054e4b98, 0x1400080e900}, 0x1400089c120, 0x140007140c0, 0x105cd0968, 0x0)
google.golang.org/grpc@v1.69.4/server.go:1392 +0xc58
google.golang.org/grpc.(*Server).handleStream(0x140006c6200, {0x1054e5298, 0x140006b21a0}, 0x1400089c120)
google.golang.org/grpc@v1.69.4/server.go:1802 +0x910
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.69.4/server.go:1030 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 52
google.golang.org/grpc@v1.69.4/server.go:1041 +0x13c
Error: The terraform-provider-opensearch_v2.3.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.
How can one reproduce the bug?
At the moment I don't have a precise process to reproduce the bug.
What is the expected behavior?
the command terraform plan plan successfully finish
What is your host/environment?
MacOs sequoia 15.6.1 with Apple M3 Pro chip
Terraform v1.12.2
on darwin_arm64
- provider registry.terraform.io/opensearch-project/opensearch v2.3.2
Do you have any additional context?
I'm using aws managed opensearch version 2.19
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
🆕 New