Skip to content

Instantly share code, notes, and snippets.

@tdsone
Created April 12, 2022 09:34
Show Gist options
  • Save tdsone/f720d130f26cfe8f59f9f66b51ed5d95 to your computer and use it in GitHub Desktop.
Save tdsone/f720d130f26cfe8f59f9f66b51ed5d95 to your computer and use it in GitHub Desktop.
│ Error: Request cancelled
│ with kubernetes_deployment.backend,
│ on kubernetes.tf line 50, in resource "kubernetes_deployment" "backend":
│ 50: resource "kubernetes_deployment" "backend" {
│ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
2022-04-12T11:23:08.125+0200 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2022-04-12T11:23:08.126+0200 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
Stack trace from the terraform-provider-kubernetes_v2.10.0_x5 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 41 [running]:
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandVolumes(0x140016d7140, 0x1, 0x1, 0x6, 0x140016f1938, 0x1, 0x0, 0x0)
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/structures_pod.go:1390 +0x24b0
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandPodSpec(0x140016d7110, 0x1, 0x1, 0x4, 0x14001744bd8, 0x0)
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/structures_pod.go:797 +0xdf4
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandPodTemplate(0x140016d70e0, 0x1, 0x1, 0x8, 0x14001744648, 0x140019a2160)
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/structures_deployment.go:116 +0x200
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.expandDeploymentSpec(0x140016d7050, 0x1, 0x1, 0x101e5f780, 0x14000d8ce10, 0x102fee701)
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/structures_deployment.go:97 +0x394
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.resourceKubernetesDeploymentUpdate(0x102257e08, 0x14000084960, 0x1400146d480, 0x10210f3c0, 0x14000bc93c0, 0x1400169dd60, 0x14000616f80, 0x100c89200)
github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_deployment.go:271 +0xa64
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x140008601c0, 0x102257d98, 0x140000510c0, 0x1400146d480, 0x10210f3c0, 0x14000bc93c0, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:375 +0x118
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x140008601c0, 0x102257d98, 0x140000510c0, 0x140006fa340, 0x14000616f80, 0x10210f3c0, 0x14000bc93c0, 0x0, 0x0, 0x0, ...)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:475 +0x2c0
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x140011e4468, 0x102257d98, 0x140000510c0, 0x14000f34730, 0x14000497bb8, 0x1, 0x1)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:977 +0x870
github.com/hashicorp/terraform-plugin-mux.SchemaServer.ApplyResourceChange(0x140013ca960, 0x140013ca990, 0x14001595120, 0x2, 0x2, 0x140000a2380, 0x1, 0x102257d98, 0x140000510c0, 0x14000f34730, ...)
github.com/hashicorp/[email protected]/schema_server.go:287 +0x80
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x140002ba0a0, 0x102257e40, 0x140010bd4a0, 0x1400183a0e0, 0x0, 0x0, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:812 +0x62c
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x1021196c0, 0x140002ba0a0, 0x102257e40, 0x140010bd4a0, 0x14000d20d80, 0x0, 0x102257e40, 0x140010bd4a0, 0x140003ce800, 0x15d0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x1c8
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400054ea80, 0x10226ee38, 0x140002a8680, 0x140006e77a0, 0x140013caae0, 0x102fa35c0, 0x0, 0x0, 0x0)
google.golang.org/[email protected]/server.go:1282 +0x3e8
google.golang.org/grpc.(*Server).handleStream(0x1400054ea80, 0x10226ee38, 0x140002a8680, 0x140006e77a0, 0x0)
google.golang.org/[email protected]/server.go:1616 +0xa50
google.golang.org/grpc.(*Server).serveStreams.func1.2(0x1400069a210, 0x1400054ea80, 0x10226ee38, 0x140002a8680, 0x140006e77a0)
google.golang.org/[email protected]/server.go:921 +0x94
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:919 +0x1f8
Error: The terraform-provider-kubernetes_v2.10.0_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.
2022-04-12T11:23:08.126+0200 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment