Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider v0.84.0: Crash in apstra_datacenter_virtual_network resource with Apstra 5.1 #1039

Open
chrismarget-j opened this issue Feb 18, 2025 · 0 comments · May be fixed by #1044
Open

Provider v0.84.0: Crash in apstra_datacenter_virtual_network resource with Apstra 5.1 #1039

chrismarget-j opened this issue Feb 18, 2025 · 0 comments · May be fixed by #1044

Comments

@chrismarget-j
Copy link
Collaborator

Reported OoB by a user:

apstra_datacenter_virtual_network.STORE-SB-314_vlan_id_314: Creating...
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-apstra_v0.84.0 plugin:
panic: runtime error: index out of range [0] with length 0
goroutine 42 [running]:
github.com/Juniper/terraform-provider-apstra/apstra/blueprint.(*DatacenterVirtualNetwork).Request(0xc000514fc0, {0x124c588, 0xc00045ec90}, 0xc000463898)
        github.com/Juniper/terraform-provider-apstra/apstra/blueprint/datacenter_virtual_network.go:604 +0x1125
github.com/Juniper/terraform-provider-apstra/apstra.(*resourceDatacenterVirtualNetwork).Create(0xc0002c6258, {0x124c588, 0xc00045ec90}, {{{{0x1255218, 0xc0005b7020}, {0xefdae0, 0xc0005b67b0}}, {0x1259040, 0xc00011d0e0}}, {{{0x1255218, ...}, ...}, ...}, ...}, ...)
        github.com/Juniper/terraform-provider-apstra/apstra/resource_datacenter_virtual_network.go:186 +0x3f1
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).CreateResource(0xc0003d6488, {0x124c588, 0xc00045ec90}, 0xc0005e9538, 0xc0005e9510)
        github.com/hashicorp/[email protected]/internal/fwserver/server_createresource.go:101 +0x578
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ApplyResourceChange(0xc0003d6488, {0x124c588, 0xc00045ec90}, 0xc000462410, 0xc0005e9628)
        github.com/hashicorp/[email protected]/internal/fwserver/server_applyresourcechange.go:57 +0x4aa
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ApplyResourceChange(0xc0003d6488, {0x124c588?, 0xc00045eba0?}, 0xc000462370)
        github.com/hashicorp/[email protected]/internal/proto6server/server_applyresourcechange.go:55 +0x38e
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc0003dc0a0, {0x124c588?, 0xc00045e1e0?}, 0xc00054c1c0)
        github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0x1053100, 0xc0003dc0a0}, {0x124c588, 0xc00045e1e0}, 0xc0005a4000, 0x0)
        github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:611 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000416000, {0x124c588, 0xc00045e150}, {0x12569e0, 0xc0000f1860}, 0xc000464000, 0xc0003c3ad0, 0x19491f8, 0x0)
        google.golang.org/[email protected]/server.go:1394 +0xe49
google.golang.org/grpc.(*Server).handleStream(0xc000416000, {0x12569e0, 0xc0000f1860}, 0xc000464000)
        google.golang.org/[email protected]/server.go:1805 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/[email protected]/server.go:1029 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 8
        google.golang.org/[email protected]/server.go:1040 +0x125

Error: The terraform-provider-apstra_v0.84.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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant