cisco-open / terraform-provider-meraki

A Terraform Provider for Cisco Meraki
Mozilla Public License 2.0
17 stars 7 forks source link

`meraki_networks_switch_dhcp_server_policy_arp_inspection_trusted_servers` - crash during/after deletion #147

Closed mcparaf closed 1 month ago

mcparaf commented 2 months ago

Describe the bug During deletion of arp inspection trusted servers there is an error. To be honest, I'm not even sure whether this is a provider error, it says that an ID is wrong and I'm not sure that I'm supplying the correct one. However, this completely blocks the Terraform project afterwards. While doing anything, even before it lets my type "yes" to confirm the changes this happens:

Stack trace from the terraform-provider-meraki_v0.2.11-alpha plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x104f3a680]

goroutine 241 [running]:
github.com/cisco-open/terraform-provider-meraki/internal/provider.(*NetworksSwitchDhcpServerPolicyArpInspectionTrustedServersResource).Read(0x14000498018, {0x105a74ee8, 0x14000395320}, {{{{0x105a7cce8, 0x14000606ea0}, {0x1057f4940, 0x14000606cf0}}, {0x105a8ee88, 0x140005d68c0}}, 0x14000498038, ...}, ...)
    github.com/cisco-open/terraform-provider-meraki/internal/provider/resource_meraki_networks_switch_dhcp_server_policy_arp_inspection_trusted_servers.go:283 +0x570
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0x140001e21e0, {0x105a74ee8, 0x14000395320}, 0x140003953b0, 0x140003756a8)
    github.com/hashicorp/terraform-plugin-framework@v1.11.0/internal/fwserver/server_readresource.go:117 +0x698
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0x140001e21e0, {0x105a74ee8?, 0x14000395200?}, 0x1400038af00)
    github.com/hashicorp/terraform-plugin-framework@v1.11.0/internal/proto6server/server_readresource.go:55 +0x314
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0x140001eca00, {0x105a74ee8?, 0x14000394960?}, 0x14000624000)
    github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/tf6server/server.go:784 +0x224
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x105a251e0?, 0x140001eca00}, {0x105a74ee8, 0x14000394960}, 0x1400059c000, 0x0)
    github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:482 +0x164
google.golang.org/grpc.(*Server).processUnaryRPC(0x140001a3000, {0x105a74ee8, 0x140003948d0}, {0x105a8d370, 0x1400047a000}, 0x14000001b00, 0x14000307a10, 0x1062e83c8, 0x0)
    google.golang.org/grpc@v1.63.2/server.go:1369 +0xba0
google.golang.org/grpc.(*Server).handleStream(0x140001a3000, {0x105a8d370, 0x1400047a000}, 0x14000001b00)
    google.golang.org/grpc@v1.63.2/server.go:1780 +0xc80
google.golang.org/grpc.(*Server).serveStreams.func2.1()
    google.golang.org/grpc@v1.63.2/server.go:1019 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 23
    google.golang.org/grpc@v1.63.2/server.go:1030 +0x150

Error: The terraform-provider-meraki_v0.2.11-alpha plugin crashed!

Steps to reproduce:

  1. create an instance of meraki_networks_switch_dhcp_server_policy_arp_inspection_trusted_servers
  2. destroy it
  3. run any terraform operation
fmunozmiranda commented 1 month ago

Please try it with new version and update us.

fmunozmiranda commented 1 month ago

if we don´t get answer in next 24 hours issue will be closed.