terraform-provider-sumologic
terraform-provider-sumologic copied to clipboard
bug: update monitor folder by setting FGP crashed
try to set obj permission without rbac on monitoring feature turned on.
resource "sumologic_monitor_folder" "xxx" {
name = "xxx"
description = "xxx"
obj_permission {
subject_type = "role"
subject_id = "xxx"
permissions = ["Manage",]
}
}
provider version 2.22.0 terraform version 1.4.0
The plugin encountered an error, and failed to respond to the │ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details. ╵
Stack trace from the terraform-provider-sumologic_v2.22.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x18e370c]
goroutine 99 [running]: github.com/SumoLogic/terraform-provider-sumologic/sumologic.resourceSumologicMonitorsLibraryFolderUpdate(0x1a02f00, {0x1b11560, 0xc0006741e0}) github.com/SumoLogic/terraform-provider-sumologic/sumologic/resource_sumologic_monitors_library_folder.go:223 +0x26c github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc00061edc0, 0xc0004a9ef0, 0xc0005590c0, {0x1b11560, 0xc0006741e0}) github.com/hashicorp/[email protected]/helper/schema/resource.go:326 +0x3e3 github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000176300, 0xc000beba68, 0x1b1fa5e, 0xf) github.com/hashicorp/[email protected]/helper/schema/provider.go:294 +0x70 github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00090c130, {0xc000bceee0, 0x108dea6}, 0xc000bceee0) github.com/hashicorp/[email protected]/internal/helper/plugin/grpc_provider.go:895 +0x7c5 github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1ae39e0, 0xc00090c130}, {0x1d1c110, 0xc00052a150}, 0xc000881500, 0x0) github.com/hashicorp/[email protected]/internal/tfplugin5/tfplugin5.pb.go:3305 +0x170 google.golang.org/grpc.(*Server).processUnaryRPC(0xc00032bc00, {0x1d2c3e8, 0xc0004b0000}, 0xc0004f5e60, 0xc000396960, 0x238e3a0, 0x0) google.golang.org/[email protected]/server.go:1292 +0xc6f google.golang.org/grpc.(*Server).handleStream(0xc00032bc00, {0x1d2c3e8, 0xc0004b0000}, 0xc0004f5e60, 0x0) google.golang.org/[email protected]/server.go:1617 +0xa2a google.golang.org/grpc.(*Server).serveStreams.func1.2() google.golang.org/[email protected]/server.go:940 +0x98 created by google.golang.org/grpc.(*Server).serveStreams.func1 google.golang.org/[email protected]/server.go:938 +0x294
Error: The terraform-provider-sumologic_v2.22.0 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.