Skip to content

Instantly share code, notes, and snippets.

@QuentinN42
Created June 21, 2023 11:55
Show Gist options
  • Save QuentinN42/c3332998fe0b733f0cfb56de12b8b34d to your computer and use it in GitHub Desktop.
Save QuentinN42/c3332998fe0b733f0cfb56de12b8b34d to your computer and use it in GitHub Desktop.
2023-06-21T13:54:45.218+0200 [DEBUG] ReferenceTransformer: "kubernetes_role_v1.test" references: []
Terraform used the selected providers to generate the following execution plan. Resource actions are
indicated with the following symbols:
+ create
Terraform will perform the following actions:
# kubernetes_role_v1.test will be created
+ resource "kubernetes_role_v1" "test" {
+ id = (known after apply)
+ metadata {
+ generation = (known after apply)
+ name = "test"
+ namespace = "default"
+ resource_version = (known after apply)
+ uid = (known after apply)
}
+ rule {}
}
Plan: 1 to add, 0 to change, 0 to destroy.
2023-06-21T13:54:45.222+0200 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
2023-06-21T13:54:47.327+0200 [INFO] backend/local: apply calling Apply
2023-06-21T13:54:47.327+0200 [DEBUG] Building and walking apply graph for NormalMode plan
2023-06-21T13:54:47.327+0200 [DEBUG] Resource state not found for node "kubernetes_role_v1.test", instance kubernetes_role_v1.test
2023-06-21T13:54:47.327+0200 [DEBUG] ProviderTransformer: "kubernetes_role_v1.test" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/kubernetes"]
2023-06-21T13:54:47.327+0200 [DEBUG] ProviderTransformer: "kubernetes_role_v1.test (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/kubernetes"]
2023-06-21T13:54:47.327+0200 [DEBUG] ReferenceTransformer: "kubernetes_role_v1.test (expand)" references: []
2023-06-21T13:54:47.327+0200 [DEBUG] ReferenceTransformer: "kubernetes_role_v1.test" references: []
2023-06-21T13:54:47.327+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/kubernetes\"]" references: []
2023-06-21T13:54:47.328+0200 [DEBUG] Starting graph walk: walkApply
2023-06-21T13:54:47.328+0200 [DEBUG] created provider logger: level=debug
2023-06-21T13:54:47.328+0200 [INFO] provider: configuring client automatic mTLS
2023-06-21T13:54:47.334+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.21.1/linux_amd64/terraform-provider-kubernetes_v2.21.1_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.21.1/linux_amd64/terraform-provider-kubernetes_v2.21.1_x5]
2023-06-21T13:54:47.334+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.21.1/linux_amd64/terraform-provider-kubernetes_v2.21.1_x5 pid=17830
2023-06-21T13:54:47.334+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.21.1/linux_amd64/terraform-provider-kubernetes_v2.21.1_x5
2023-06-21T13:54:47.361+0200 [INFO] provider.terraform-provider-kubernetes_v2.21.1_x5: configuring server automatic mTLS: timestamp=2023-06-21T13:54:47.361+0200
2023-06-21T13:54:47.375+0200 [DEBUG] provider: using plugin: version=5
2023-06-21T13:54:47.375+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: plugin address: address=/tmp/plugin667953205 network=unix timestamp=2023-06-21T13:54:47.375+0200
2023-06-21T13:54:47.417+0200 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/kubernetes\"]" changed the config value, but that value is unused
2023-06-21T13:54:47.418+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: 2023/06/21 13:54:47 [DEBUG] Using kubeconfig: k3.yaml
2023-06-21T13:54:47.418+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: 2023/06/21 13:54:47 [DEBUG] Enabling HTTP requests/responses tracing
2023-06-21T13:54:47.420+0200 [WARN] Provider "registry.terraform.io/hashicorp/kubernetes" produced an invalid plan for kubernetes_role_v1.test, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .metadata[0].namespace: planned value cty.StringVal("default") for a non-computed attribute
- .rule[0].api_groups: planned value cty.NullVal(cty.Set(cty.String)) does not match config value cty.SetValEmpty(cty.String)
- .rule[0].resources: planned value cty.NullVal(cty.Set(cty.String)) does not match config value cty.SetValEmpty(cty.String)
- .rule[0].verbs: planned value cty.NullVal(cty.Set(cty.String)) does not match config value cty.SetValEmpty(cty.String)
kubernetes_role_v1.test: Creating...
2023-06-21T13:54:47.420+0200 [INFO] Starting apply for kubernetes_role_v1.test
2023-06-21T13:54:47.420+0200 [DEBUG] kubernetes_role_v1.test: applying the planned Create change
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: panic: interface conversion: interface {} is nil, not map[string]interface {}
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5:
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: goroutine 25 [running]:
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandRules({0xc000f8ea20, 0x1, 0x0?})
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_role.go:224 +0x645
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-provider-kubernetes/kubernetes.resourceKubernetesRoleCreate({0x227e368, 0xc0009baea0}, 0x0?, {0x1e6e5e0?, 0xc0009c7420})
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_role.go:79 +0x1af
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc000570460, {0x227e3a0, 0xc001278420}, 0xd?, {0x1e6e5e0, 0xc0009c7420})
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0x12e
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000570460, {0x227e3a0, 0xc001278420}, 0xc00153d1e0, 0xc001266680, {0x1e6e5e0, 0xc0009c7420})
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa85
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000596a20, {0x227e3a0?, 0xc001278300?}, 0xc001526820)
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe8d
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0xc0007a7e00, 0xc0007a7e60, {0xc0012dcb00, 0x2, 0x2}, 0xc0007a7e30, 0xc0006bae90, 0xc001296a90, 0xc0007a7e90}, {0x227e3a0, ...}, ...)
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x142
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0003adc20, {0x227e3a0?, 0xc00122f890?}, 0xc00121cb60)
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1e67940?, 0xc0003adc20}, {0x227e3a0, 0xc00122f890}, 0xc00121caf0, 0x0)
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/grpc.(*Server).processUnaryRPC(0xc000e623c0, {0x2284e60, 0xc0002ca1a0}, 0xc001275e60, 0xc0013a2ff0, 0x3158e00, 0x0)
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/[email protected]/server.go:1340 +0xd23
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/grpc.(*Server).handleStream(0xc000e623c0, {0x2284e60, 0xc0002ca1a0}, 0xc001275e60, 0x0)
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/[email protected]/server.go:1713 +0xa2f
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/grpc.(*Server).serveStreams.func1.2()
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/[email protected]/server.go:965 +0x98
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: created by google.golang.org/grpc.(*Server).serveStreams.func1
2023-06-21T13:54:47.423+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.21.1_x5: google.golang.org/[email protected]/server.go:963 +0x28a
2023-06-21T13:54:47.424+0200 [ERROR] plugin.(*GRPCProvider).ApplyResourceChange: error="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-21T13:54:47.424+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-21T13:54:47.424+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.21.1/linux_amd64/terraform-provider-kubernetes_v2.21.1_x5 pid=17830 error="exit status 2"
2023-06-21T13:54:47.434+0200 [ERROR] vertex "kubernetes_role_v1.test" error: Plugin did not respond
│ Error: Plugin did not respond
│ with kubernetes_role_v1.test,
│ on main.tf line 14, in resource "kubernetes_role_v1" "test":
│ 14: resource "kubernetes_role_v1" "test" {
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
Stack trace from the terraform-provider-kubernetes_v2.21.1_x5 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 25 [running]:
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandRules({0xc000f8ea20, 0x1, 0x0?})
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_role.go:224 +0x645
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.resourceKubernetesRoleCreate({0x227e368, 0xc0009baea0}, 0x0?, {0x1e6e5e0?, 0xc0009c7420})
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_role.go:79 +0x1af
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc000570460, {0x227e3a0, 0xc001278420}, 0xd?, {0x1e6e5e0, 0xc0009c7420})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000570460, {0x227e3a0, 0xc001278420}, 0xc00153d1e0, 0xc001266680, {0x1e6e5e0, 0xc0009c7420})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa85
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000596a20, {0x227e3a0?, 0xc001278300?}, 0xc001526820)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe8d
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0xc0007a7e00, 0xc0007a7e60, {0xc0012dcb00, 0x2, 0x2}, 0xc0007a7e30, 0xc0006bae90, 0xc001296a90, 0xc0007a7e90}, {0x227e3a0, ...}, ...)
github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x142
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0003adc20, {0x227e3a0?, 0xc00122f890?}, 0xc00121cb60)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1e67940?, 0xc0003adc20}, {0x227e3a0, 0xc00122f890}, 0xc00121caf0, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000e623c0, {0x2284e60, 0xc0002ca1a0}, 0xc001275e60, 0xc0013a2ff0, 0x3158e00, 0x0)
google.golang.org/[email protected]/server.go:1340 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc000e623c0, {0x2284e60, 0xc0002ca1a0}, 0xc001275e60, 0x0)
google.golang.org/[email protected]/server.go:1713 +0xa2f
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-kubernetes_v2.21.1_x5 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.
2023-06-21T13:54:47.438+0200 [DEBUG] provider: plugin exited
kubernetes_role_v1.test: Creating...
│ Error: Plugin did not respond
│ with kubernetes_role_v1.test,
│ on main.tf line 14, in resource "kubernetes_role_v1" "test":
│ 14: resource "kubernetes_role_v1" "test" {
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
Stack trace from the terraform-provider-kubernetes_v2.21.1_x5 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 108 [running]:
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandRules({0xc0010ebca0, 0x1, 0x0?})
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_role.go:224 +0x645
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.resourceKubernetesRoleCreate({0x227e368, 0xc0016c50e0}, 0x0?, {0x1e6e5e0?, 0xc0016a89a0})
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_role.go:79 +0x1af
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0009eca80, {0x227e3a0, 0xc001786000}, 0xd?, {0x1e6e5e0, 0xc0016a89a0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0009eca80, {0x227e3a0, 0xc001786000}, 0xc000ac60d0, 0xc0016fa580, {0x1e6e5e0, 0xc0016a89a0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa85
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0002a07e0, {0x227e3a0?, 0xc0016f3ec0?}, 0xc000c5d7c0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe8d
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0xc000b86900, 0xc000b86960, {0xc001396d80, 0x2, 0x2}, 0xc000b86930, 0xc000dfd070, 0xc001348d20, 0xc000b86990}, {0x227e3a0, ...}, ...)
github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x142
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0006b00a0, {0x227e3a0?, 0xc0016f3470?}, 0xc0016de9a0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1e67940?, 0xc0006b00a0}, {0x227e3a0, 0xc0016f3470}, 0xc0016de930, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000fe8000, {0x2284e60, 0xc000f431e0}, 0xc0016f58c0, 0xc001383f20, 0x3158e00, 0x0)
google.golang.org/[email protected]/server.go:1340 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc000fe8000, {0x2284e60, 0xc000f431e0}, 0xc0016f58c0, 0x0)
google.golang.org/[email protected]/server.go:1713 +0xa2f
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-kubernetes_v2.21.1_x5 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