Open nnewc opened 1 year ago
I get the above error also, but other times I get a stacktrace error: `Stack trace from the terraform-provider-rancher2_v4.1.0 plugin:
Rancher Server Setup Rancher version: 2.8.3 Installation option (Docker install/Helm Chart): Helm If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE2 Information about the Cluster Kubernetes version: 1.30.0 Cluster Type (Local/Downstream): Local User Information What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom): Admin Provider Information What is the version of the Rancher v2 Terraform Provider in use? 4.1.0 What is the version of Terraform in use? 1.8.2
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x105803b9c]
goroutine 104 [running]: github.com/rancher/norman/clientbase.(APIOperations).DoByID(0x0, {0x106505c32, 0x7}, {0x106514027, 0xb}, {0x106b6e8a0, 0x140002a27e0}) /go/pkg/mod/github.com/rancher/norman@v0.0.0-20230426211126-d3552b018687/clientbase/ops.go:250 +0x5c github.com/rancher/rancher/pkg/client/generated/management/v3.(SettingClient).ByID(0x1400086b2d8, {0x106514027, 0xb}) /go/pkg/mod/github.com/rancher/rancher/pkg/client@v0.0.0-20230901132600-5e1ee2611616/generated/management/v3/zz_generated_setting.go:120 +0x68 github.com/rancher/terraform-provider-rancher2/rancher2.(Config).getK8SDefaultVersion(0x14000246e40) /go/src/github.com/rancher/terraform-provider-rancher2/rancher2/config.go:135 +0x100 github.com/rancher/terraform-provider-rancher2/rancher2.(Config).ManagementClient(0x14000246e40) /go/src/github.com/rancher/terraform-provider-rancher2/rancher2/config.go:285 +0x208 github.com/rancher/terraform-provider-rancher2/rancher2.(Config).RestartClients(0x14000246e40) /go/src/github.com/rancher/terraform-provider-rancher2/rancher2/config.go:251 +0x11c github.com/rancher/terraform-provider-rancher2/rancher2.(Config).UpdateToken(0x14000f8e340?, {0x14000124870?, 0x1065000e4?}) /go/src/github.com/rancher/terraform-provider-rancher2/rancher2/config.go:240 +0x4c github.com/rancher/terraform-provider-rancher2/rancher2.bootstrapDoLogin(0x140006e55f0?, {0x107031e80?, 0x14000246e40}) /go/src/github.com/rancher/terraform-provider-rancher2/rancher2/resource_rancher2_bootstrap.go:289 +0x3f4 github.com/rancher/terraform-provider-rancher2/rancher2.resourceRancher2BootstrapCreate(0x106cc6320?, {0x107031e80?, 0x14000246e40}) /go/src/github.com/rancher/terraform-provider-rancher2/rancher2/resource_rancher2_bootstrap.go:27 +0x4c github.com/hashicorp/terraform-plugin-sdk/helper/schema.(Resource).Apply(0x14000549540, 0x14000fa24b0, 0x14000f7afe0, {0x107031e80, 0x14000246e40}) /go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/resource.go:320 +0x3dc github.com/hashicorp/terraform-plugin-sdk/helper/schema.(Provider).Apply(0x1400013c000, 0x140006e58a0, 0x106525166?, 0xf?) /go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/provider.go:294 +0x6c github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(GRPCProviderServer).ApplyResourceChange(0x14000930120, {0x14000fa4000?, 0x0?}, 0x14000fa4000) /go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/helper/plugin/grpc_provider.go:895 +0x6a0 github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x106f63ea0?, 0x14000930120}, {0x107065df0, 0x14000f9ac00}, 0x14000f8df80, 0x0) /go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfplugin5/tfplugin5.pb.go:3305 +0x170 google.golang.org/grpc.(Server).processUnaryRPC(0x140004dc000, {0x10706ffc0, 0x14000702b60}, 0x140011e6c60, 0x140013259e0, 0x108260ac0, 0x0) /go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:1337 +0xc64 google.golang.org/grpc.(Server).handleStream(0x140004dc000, {0x10706ffc0, 0x14000702b60}, 0x140011e6c60, 0x0) /go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:1714 +0x82c google.golang.org/grpc.(Server).serveStreams.func1.1() /go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:959 +0x84 created by google.golang.org/grpc.(*Server).serveStreams.func1 /go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:957 +0x16c
Error: The terraform-provider-rancher2_v4.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.`
@nnewc @whindes Getting the same were you able to figure it out the issue?
I am also getting this issue. Though occasionally it'll work. No idea what the catalyst is. Happy to provide any helpful info.
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
Cannot create rancher_bootstrap resource
To Reproduce
Actual Result
Rancher is reachable via curl:
Expected Result
bootstrap resource is created
Additional context
Cluster is using CIS profile. Looking for any additional steps to debug this issue.