Skip to content

Instantly share code, notes, and snippets.

@gdlx
Created February 8, 2023 16:46
Show Gist options
  • Save gdlx/19d7fcca60439d6c6b372e0db3a7addd to your computer and use it in GitHub Desktop.
Save gdlx/19d7fcca60439d6c6b372e0db3a7addd to your computer and use it in GitHub Desktop.
terraform opsgenie import alert policy panic
data.opsgenie_team.my_team: Reading...
data.opsgenie_team.my_team: Read complete after 0s [id=e509ad19-1fd7-4c5c-8aee-8d0cdfece61c]
opsgenie_alert_policy.add_tag: Importing from ID "8e2e4b35-94ec-4192-a61c-f0ad82b8ef33"...
opsgenie_alert_policy.add_tag: Import prepared!
Prepared opsgenie_alert_policy for import
opsgenie_alert_policy.add_tag: Refreshing state... [id=8e2e4b35-94ec-4192-a61c-f0ad82b8ef33]
│ Error: Plugin did not respond
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
Stack trace from the terraform-provider-opsgenie_v0.6.20 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0xa872bb]
goroutine 37 [running]:
github.com/opsgenie/terraform-provider-opsgenie/opsgenie.resourceOpsGenieAlertPolicyRead({0xd54a20?, 0xc0000ac340?}, 0xc0001e4b80, {0xb08740?, 0xc00000e410?})
github.com/opsgenie/terraform-provider-opsgenie/opsgenie/resource_opsgenie_alert_policy.go:363 +0x4db
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0003c08c0, {0xd54a20, 0xc0000ac340}, 0x24?, {0xb08740, 0xc00000e410})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.0/helper/schema/resource.go:358 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0003c08c0, {0xd54a20, 0xc0000ac340}, 0xc0003c7790, {0xb08740, 0xc00000e410})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.0/helper/schema/resource.go:635 +0x35b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc0001a5488, {0xd54a20, 0xc0000ac340}, 0xc0000ac500)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.0/helper/schema/grpc_provider.go:576 +0x43f
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0xc0001e5700, {0xd54ac8?, 0xc0001305a0?}, 0xc000124780)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/tf5server/server.go:553 +0x33c
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0xc07d80?, 0xc0001e5700}, {0xd54ac8, 0xc0001305a0}, 0xc0001246c0, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:344 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00027f180, {0xd58900, 0xc000210780}, 0xc0002f8200, 0xc0003f8090, 0x11f1c70, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1194 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc00027f180, {0xd58900, 0xc000210780}, 0xc0002f8200, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.32.0/server.go:859 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.32.0/server.go:857 +0x28a
Error: The terraform-provider-opsgenie_v0.6.20 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment