Skip to content

Instantly share code, notes, and snippets.

@lpiot
Created April 22, 2025 15:21
Show Gist options
  • Select an option

  • Save lpiot/7d0c55e9c2090fd201ef6217eeb63dc9 to your computer and use it in GitHub Desktop.

Select an option

Save lpiot/7d0c55e9c2090fd201ef6217eeb63dc9 to your computer and use it in GitHub Desktop.
outscale/outscale v1.1.0 crash when multiple provider aliases are used
# tofu plan --var-file=/secrets/customer-A.tfvars --var-file=/secrets/storcloud.tfvars
Planning failed. OpenTofu encountered an error while generating this plan.
│ Error: Plugin did not respond
│ with provider["registry.opentofu.org/outscale/outscale"],
│ on provider.tf line 10, in provider "outscale":
│ 10: provider outscale {
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ConfigureProvider call. The plugin logs may contain more details.
│ Error: Plugin did not respond
│ with provider["registry.opentofu.org/outscale/outscale"].customer_account,
│ on provider.tf line 26, in provider "outscale":
│ 26: provider outscale {
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ConfigureProvider call. The plugin logs may contain more details.
Stack trace from the terraform-provider-outscale_v1.1.0 plugin:
panic: interface conversion: interface {} is map[string]interface {}, not map[string]string
goroutine 21 [running]:
github.com/outscale/terraform-provider-outscale/outscale.providerConfigureClient(0x40000a3280)
github.com/outscale/terraform-provider-outscale/outscale/provider.go:240 +0x404
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Provider).Configure(0x40000acfc0, {0x11c7a18, 0x400052de30}, 0x4000747ae0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.1/helper/schema/provider.go:381 +0x174
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ConfigureProvider(0x40001af290, {0x11c7a18?, 0x400052d680?}, 0x400007f080)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.1/helper/schema/grpc_provider.go:647 +0x368
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ConfigureProvider(0x400011ca00, {0x11c7a18?, 0x4000241bc0?}, 0x400007f080)
github.com/hashicorp/terraform-plugin-mux@v0.18.0/tf5muxserver/mux_server_ConfigureProvider.go:28 +0x104
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).Configure(0x40000aea00, {0x11c7a18?, 0x400071c2d0?}, 0x4000747090)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/tf5server/server.go:587 +0x2ac
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_Configure_Handler({0xeb3a80, 0x40000aea00}, {0x11c7a18, 0x400071c2d0}, 0x40000a2100, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:557 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x4000012200, {0x11c7a18, 0x400071c210}, 0x4000a82060, 0x40006db950, 0x1ba60d0, 0x0)
google.golang.org/grpc@v1.69.4/server.go:1392 +0xc44
google.golang.org/grpc.(*Server).handleStream(0x4000012200, {0x11c8408, 0x40005d9040}, 0x4000a82060)
google.golang.org/grpc@v1.69.4/server.go:1802 +0x910
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.69.4/server.go:1030 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 50
google.golang.org/grpc@v1.69.4/server.go:1041 +0x13c
panic: interface conversion: interface {} is map[string]interface {}, not map[string]string
goroutine 56 [running]:
github.com/outscale/terraform-provider-outscale/outscale.providerConfigureClient(0x400047f780)
github.com/outscale/terraform-provider-outscale/outscale/provider.go:240 +0x404
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Provider).Configure(0x40002196c0, {0x11c7a18, 0x4000827890}, 0x400082c0a0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.1/helper/schema/provider.go:381 +0x174
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ConfigureProvider(0x40001232a8, {0x11c7a18?, 0x40008270e0?}, 0x400007f220)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.36.1/helper/schema/grpc_provider.go:647 +0x368
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ConfigureProvider(0x400047e180, {0x11c7a18?, 0x400009fb90?}, 0x400007f220)
github.com/hashicorp/terraform-plugin-mux@v0.18.0/tf5muxserver/mux_server_ConfigureProvider.go:28 +0x104
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).Configure(0x400011e5a0, {0x11c7a18?, 0x400009f260?}, 0x4000049900)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/tf5server/server.go:587 +0x2ac
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_Configure_Handler({0xeb3a80, 0x400011e5a0}, {0x11c7a18, 0x400009f260}, 0x400047e600, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:557 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x40000a0000, {0x11c7a18, 0x400009f200}, 0x40000a5a40, 0x400009e720, 0x1ba60d0, 0x0)
google.golang.org/grpc@v1.69.4/server.go:1392 +0xc44
google.golang.org/grpc.(*Server).handleStream(0x40000a0000, {0x11c8408, 0x40005f2340}, 0x40000a5a40)
google.golang.org/grpc@v1.69.4/server.go:1802 +0x910
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.69.4/server.go:1030 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 52
google.golang.org/grpc@v1.69.4/server.go:1041 +0x13c
Error: The terraform-provider-outscale_v1.1.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