PANOS Provider crashing if EDLs are used

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

PANOS Provider crashing if EDLs are used

L1 Bithead

Hi 🙂 

 

We are using Terraform and using the PANOS Provider 1.10.0 but since we're using EDLs the provider crashes with the following...

 

If I remove EDLs are try do a terraform plan then it succeeds, is someone able to assist?

 

 

Stack trace from the terraform-provider-panos_v1.10.0 plugin:

 

panic: runtime error: index out of range [2] with length 2

 

goroutine 52 [running]:

github.com/terraform-providers/terraform-provider-panos/panos.parseEdlId(0xc000bcea60, 0x1a, 0x139fb20, 0x0, 0x15, 0x153fc1a, 0xb, 0x139fb20)

github.com/terraform-providers/terraform-provider-panos/panos/edl.go:433 +0xd7

github.com/terraform-providers/terraform-provider-panos/panos.readEdl(0xc000902cb0, 0x152fa40, 0xc00000a1e0, 0xc000902cb0, 0x0)

github.com/terraform-providers/terraform-provider-panos/panos/edl.go:203 +0xb7

github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc00062f900, 0xc000be9d60, 0x152fa40, 0xc00000a1e0, 0xc000209340, 0x0, 0x0)

github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/resource.go:470 +0x12e

github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ReadResource(0xc000208358, 0x17723d0, 0xc000335f80, 0xc000bd1680, 0xc000208358, 0xc000335f80, 0xc0004e4ba0)

github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/helper/plugin/grpc_provider.go:535 +0x3dd

github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ReadResource_Handler(0x14ea840, 0xc000208358, 0x17723d0, 0xc000335f80, 0xc000bd1620, 0x0, 0x17723d0, 0xc000335f80, 0xc000564340, 0x197)

github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfplugin5/tfplugin5.pb.go:3269 +0x214

google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002c76c0, 0x177b938, 0xc00038b980, 0xc0000b2f00, 0xc00036c9f0, 0x1e97af0, 0x0, 0x0, 0x0)

google.golang.org/grpc@v1.32.0/server.go:1194 +0x52b

google.golang.org/grpc.(*Server).handleStream(0xc0002c76c0, 0x177b938, 0xc00038b980, 0xc0000b2f00, 0x0)

google.golang.org/grpc@v1.32.0/server.go:1517 +0xd0c

google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0000384d0, 0xc0002c76c0, 0x177b938, 0xc00038b980, 0xc0000b2f00)

google.golang.org/grpc@v1.32.0/server.go:859 +0xab

created by google.golang.org/grpc.(*Server).serveStreams.func1

google.golang.org/grpc@v1.32.0/server.go:857 +0x1fd

 

Error: The terraform-provider-panos_v1.10.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.

 

@gfreeman I can see that you have previously been the person to commit to this in GitHub. Tagging for your visibility 

1 REPLY 1

L1 Bithead

Myself and a colleague have looked into this and found the potential issue which we have posted below, can someone from Palo Alto please update the provider...

 

https://github.com/PaloAltoNetworks/terraform-provider-panos/issues/330

  • 1951 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!