terraform-provider-flux icon indicating copy to clipboard operation
terraform-provider-flux copied to clipboard

flux_bootstrap_git "Plugin did not respond" during terraform import

Open EishanR opened this issue 8 months ago • 1 comments

We are currently on Flux 0.41.2 and terraform flux/fluxcd provider 0.25.3 and wish to migrate to using the new flux_bootstrap_git resource. While running the command tf import flux_bootstrap_git.this flux-system we encounter the following error :

The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ImportResourceState call. The plugin logs may cont
        github.com/hashicorp/[email protected]/internal/fwserver/server_importresourcestate.go:104 +0x462
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ImportResourceState(0xc0002dba20, {0x20611a0?, 0xc002c6aae0?}, 0xc00062fee0)
        github.com/hashicorp/[email protected]/internal/proto6server/server_importresourcestate.go:44 +0x30b
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ImportResourceState(0xc000698fa0, {0x20611a0?, 0xc00068da40?}, 0xc00399c1e0)
        github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:846 +0x1f6
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ImportResourceState_Handler({0x1c63e80?, 0xc000698fa0}, {0x20611a0, 0xc00068da40}, 0xc000bb4230, 0x0)
        github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:403 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0004c41e0, {0x206b378, 0xc0006d61a0}, 0xc0029f7680, 0xc0005162a0, 0x2ff3ef8, 0x0)     
        google.golang.org/[email protected]/server.go:1340 +0xd33
google.golang.org/grpc.(*Server).handleStream(0xc0004c41e0, {0x206b378, 0xc0006d61a0}, 0xc0029f7680, 0x0)
        google.golang.org/[email protected]/server.go:1713 +0xa36
google.golang.org/grpc.(*Server).serveStreams.func1.2()
        google.golang.org/[email protected]/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/[email protected]/server.go:963 +0x28a

Error: The terraform-provider-flux_v0.25.3.exe 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.

We have decided to migrate to using the new resource and then eventually upgrade to the newer version of flux. The datasources flux_install and flux_sync are not yet deprecated in version 0.25.3 Provider

EishanR avatar Oct 27 '23 20:10 EishanR