Created
April 12, 2024 20:18
-
-
Save partcyborg/41b25aa901fe5ab28b3b79b213b0d8ff to your computer and use it in GitHub Desktop.
kubernetes_node_taint node not found debug output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mwilder@mwilder-1 ~/tmp/taint-test> TF_LOG=debug terraform plan | |
2024-04-12T13:18:05.782-0700 [INFO] Terraform version: 1.5.5 | |
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 | |
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 | |
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 | |
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/zclconf/go-cty v1.12.2 | |
2024-04-12T13:18:05.782-0700 [INFO] Go runtime version: go1.20.7 | |
2024-04-12T13:18:05.782-0700 [INFO] CLI args: []string{"terraform", "plan"} | |
2024-04-12T13:18:05.782-0700 [DEBUG] Attempting to open CLI config file: /home/mwilder/.terraformrc | |
2024-04-12T13:18:05.782-0700 [INFO] Loading CLI configuration from /home/mwilder/.terraformrc | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory /home/mwilder/.terraform.d/plugins | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory /home/mwilder/.local/share/terraform/plugins | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory /home/mwilder/.local/share/flatpak/exports/share/terraform/plugins | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory /var/lib/flatpak/exports/share/terraform/plugins | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins | |
2024-04-12T13:18:05.782-0700 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins | |
2024-04-12T13:18:05.782-0700 [INFO] CLI command args: []string{"plan"} | |
2024-04-12T13:18:05.899-0700 [DEBUG] checking for provisioner in "." | |
2024-04-12T13:18:05.899-0700 [DEBUG] checking for provisioner in "/home/mwilder/.terraform.versions" | |
2024-04-12T13:18:05.900-0700 [INFO] backend/local: starting Plan operation | |
2024-04-12T13:18:05.900-0700 [DEBUG] created provider logger: level=debug | |
2024-04-12T13:18:05.900-0700 [INFO] provider: configuring client automatic mTLS | |
2024-04-12T13:18:05.915-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5] | |
2024-04-12T13:18:05.915-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 pid=3568577 | |
2024-04-12T13:18:05.915-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 | |
2024-04-12T13:18:05.941-0700 [INFO] provider.terraform-provider-kubernetes_v2.29.0_x5: configuring server automatic mTLS: timestamp=2024-04-12T13:18:05.941-0700 | |
2024-04-12T13:18:05.950-0700 [DEBUG] provider: using plugin: version=5 | |
2024-04-12T13:18:05.950-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: plugin address: address=/tmp/plugin2706363132 network=unix timestamp=2024-04-12T13:18:05.949-0700 | |
2024-04-12T13:18:06.005-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" | |
2024-04-12T13:18:06.008-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 pid=3568577 | |
2024-04-12T13:18:06.008-0700 [DEBUG] provider: plugin exited | |
2024-04-12T13:18:06.008-0700 [DEBUG] Building and walking validate graph | |
2024-04-12T13:18:06.008-0700 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/kubernetes"], implied first by kubernetes_node_taint.test | |
2024-04-12T13:18:06.008-0700 [DEBUG] ProviderTransformer: "kubernetes_node_taint.test" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/kubernetes"] | |
2024-04-12T13:18:06.008-0700 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/kubernetes\"]" references: [] | |
2024-04-12T13:18:06.008-0700 [DEBUG] ReferenceTransformer: "kubernetes_node_taint.test" references: [] | |
2024-04-12T13:18:06.008-0700 [DEBUG] Starting graph walk: walkValidate | |
2024-04-12T13:18:06.008-0700 [DEBUG] created provider logger: level=debug | |
2024-04-12T13:18:06.008-0700 [INFO] provider: configuring client automatic mTLS | |
2024-04-12T13:18:06.014-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5] | |
2024-04-12T13:18:06.014-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 pid=3568591 | |
2024-04-12T13:18:06.014-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 | |
2024-04-12T13:18:06.040-0700 [INFO] provider.terraform-provider-kubernetes_v2.29.0_x5: configuring server automatic mTLS: timestamp=2024-04-12T13:18:06.040-0700 | |
2024-04-12T13:18:06.050-0700 [DEBUG] provider: using plugin: version=5 | |
2024-04-12T13:18:06.050-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: plugin address: address=/tmp/plugin657832124 network=unix timestamp=2024-04-12T13:18:06.049-0700 | |
2024-04-12T13:18:06.107-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" | |
2024-04-12T13:18:06.109-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 pid=3568591 | |
2024-04-12T13:18:06.109-0700 [DEBUG] provider: plugin exited | |
2024-04-12T13:18:06.109-0700 [INFO] backend/local: plan calling Plan | |
2024-04-12T13:18:06.109-0700 [DEBUG] Building and walking plan graph for NormalMode | |
2024-04-12T13:18:06.109-0700 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/kubernetes"], implied first by kubernetes_node_taint.test (expand) | |
2024-04-12T13:18:06.109-0700 [DEBUG] ProviderTransformer: "kubernetes_node_taint.test (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/kubernetes"] | |
2024-04-12T13:18:06.110-0700 [DEBUG] ReferenceTransformer: "kubernetes_node_taint.test (expand)" references: [] | |
2024-04-12T13:18:06.110-0700 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/kubernetes\"]" references: [] | |
2024-04-12T13:18:06.110-0700 [DEBUG] Starting graph walk: walkPlan | |
2024-04-12T13:18:06.110-0700 [DEBUG] created provider logger: level=debug | |
2024-04-12T13:18:06.110-0700 [INFO] provider: configuring client automatic mTLS | |
2024-04-12T13:18:06.115-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5] | |
2024-04-12T13:18:06.116-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 pid=3568605 | |
2024-04-12T13:18:06.116-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 | |
2024-04-12T13:18:06.141-0700 [INFO] provider.terraform-provider-kubernetes_v2.29.0_x5: configuring server automatic mTLS: timestamp=2024-04-12T13:18:06.141-0700 | |
2024-04-12T13:18:06.150-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: plugin address: address=/tmp/plugin110570656 network=unix timestamp=2024-04-12T13:18:06.150-0700 | |
2024-04-12T13:18:06.150-0700 [DEBUG] provider: using plugin: version=5 | |
2024-04-12T13:18:06.207-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: 2024/04/12 13:18:06 [DEBUG] Using kubeconfig: /home/mwilder/.kube/config.merged-noproxy | |
2024-04-12T13:18:06.207-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: 2024/04/12 13:18:06 [DEBUG] Using custom current context: "aws-virginia-hd2" | |
2024-04-12T13:18:06.207-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: 2024/04/12 13:18:06 [DEBUG] Using overridden context: api.Context{LocationOfOrigin:"", Cluster:"", AuthInfo:"", Namespace:"", Extensions:map[string]runtime.Object(nil)} | |
2024-04-12T13:18:06.215-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: 2024/04/12 13:18:06 [DEBUG] Enabling HTTP requests/responses tracing | |
2024-04-12T13:18:06.222-0700 [WARN] provider.terraform-provider-kubernetes_v2.29.0_x5: Invalid provider configuration was supplied. Provider operations likely to fail: error="invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable" tf_mux_provider=*proto5server.Server tf_provider_addr=registry.terraform.io/hashicorp/kubernetes tf_req_id=b59eb95b-2442-30a1-feec-97a23bc4535f tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/provider_configure.go:146 @module=kubernetes timestamp=2024-04-12T13:18:06.222-0700 | |
2024-04-12T13:18:06.222-0700 [DEBUG] ReferenceTransformer: "kubernetes_node_taint.test" references: [] | |
kubernetes_node_taint.test: Refreshing state... [id=ip-10-253-35-81.ec2.internal,node-role.kubernetes.io/retired=true:NoSchedule] | |
2024-04-12T13:18:06.257-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: Sending HTTP Request: @module=kubernetes.Kubernetes Accept="application/json, */*" Host=BEC2C00178ABFE3FF267812C53685884.gr7.us-east-1.eks.amazonaws.com tf_http_req_version=HTTP/1.1 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/logging/logging_http_transport.go:160 User-Agent="HashiCorp/1.0 Terraform/1.5.5" tf_http_op_type=request tf_http_req_body= tf_http_req_method=GET tf_http_req_uri=/api/v1/nodes/ip-10-253-35-81.ec2.internal Accept-Encoding=gzip Authorization="Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPclpDallWQzJQR0s5N25KYXluZ29NdHRUbEtFSGNrX085QklzRTdIRXlVIn0.eyJleHAiOjE3MTI5NTQxNjQsImlhdCI6MTcxMjk1Mjk2NCwiYXV0aF90aW1lIjowLCJqdGkiOiI3M2VmNDU4Ny1lNDE0LTRkOWMtOWFkNC00NTAzNDk2MjY2OTAiLCJpc3MiOiJodHRwczovL2F1dGgubWVtc3FsLmNvbS9hdXRoL3JlYWxtcy9tZW1jb21wdXRlIiwiYXVkIjoia3ViZXJuZXRlcyIsInN1YiI6IjA1NmZjZDdhLWE1YjAtNGZmNC1hOGViLTRmMDRjMTFjMTEwZiIsInR5cCI6IklEIiwiYXpwIjoia3ViZXJuZXRlcyIsInNlc3Npb25fc3RhdGUiOiI4MDNmZjc3Ny01NjM5LTQxN2ItOGUxOS04Y2Y0MzZjM2ZmY2QiLCJhdF9oYXNoIjoibW9QVzE4RnBvNi01TW1KcFdsNUZ3dyIsInNpZCI6IjgwM2ZmNzc3LTU2MzktNDE3Yi04ZTE5LThjZjQzNmMzZmZjZCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJuYW1lIjoiTWF0dGhldyBXaWxkZXIiLCJncm91cHMiOlsicG9ydGFsLWxpY2Vuc2UtYWRtaW4iLCJhZG1pbnMiLCJwb3J0YWwtY2x1c3Rlci1hZG1pbiIsImhlbGlvcy1zcmUiLCJlbmdpbmVlcmluZyIsInN5c2VuZyIsInBvcnRhbC1jbHVzdGVyLXN1cHBvcnQiLCJpcGF1c2VycyIsImhlbGlvcy1zcmUtYWRtaW5zIiwiY2xvdWRvcHMiXSwicHJlZmVycmVkX3VzZXJuYW1lIjoibXdpbGRlciIsImdpdmVuX25hbWUiOiJNYXR0aGV3IiwiZmFtaWx5X25hbWUiOiJXaWxkZXIiLCJlbWFpbCI6Im13aWxkZXJAbWVtc3FsLmNvbSJ9.HYjKQHjLdSo_J11dAZa6BGu7ZzctqBEtGlm8rW1KDRqSZ5W2QQWsLuPvFoxHPPDDll8N79VW-KW532z8XRK1g6bZ8dQcjmUwGDZ279583eg0dkICQ3nfZMWXt7gGOXFwoQDPF9T1MwFBGj2v-tcHXC4edVjXldiwRw4y__Y0zL4hr3gomeAHGgjIPNGPq-ghKNUaTY3U4hCECxmysERBGSe6FnI2eXB5PRCfNjN4A96jlZiGWoz4efUawNTtZNIf1fIfJ8Fh65c1Nm0600hoK4GSO5vFFvrxnSaZ_wdJCE4k8VyvQvJuCQQ0KT38e9e125UiSWuZ2CaI92HWeApW6w" new_logger_warning="This log was generated by a subsystem logger that wasn't created before being used. Use tflog.NewSubsystem to create this logger before it is used." tf_http_trans_id=83c7b1f8-f6d3-0967-a09b-ea0df6666f18 timestamp=2024-04-12T13:18:06.257-0700 | |
2024-04-12T13:18:06.575-0700 [DEBUG] provider.terraform-provider-kubernetes_v2.29.0_x5: Received HTTP Response: new_logger_warning="This log was generated by a subsystem logger that wasn't created before being used. Use tflog.NewSubsystem to create this logger before it is used." tf_http_res_status_code=404 @module=kubernetes.Kubernetes tf_http_op_type=response Content-Length=226 Date="Fri, 12 Apr 2024 20:18:06 GMT" tf_http_res_body="{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"nodes \"ip-10-253-35-81.ec2.internal\" not found","reason":"NotFound","details":{"name":"ip-10-253-35-81.ec2.internal","kind":"nodes"},"code":404} | |
" tf_http_res_status_reason="404 Not Found" tf_http_res_version=HTTP/2.0 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/logging/logging_http_transport.go:160 Cache-Control="no-cache, private" Content-Type=application/json X-Kubernetes-Pf-Flowschema-Uid=8ad7bfc5-8dd4-436c-a57e-f5cb4862311e X-Kubernetes-Pf-Prioritylevel-Uid=0325f864-1bdc-40be-bb58-cab656f0a6d3 tf_http_trans_id=83c7b1f8-f6d3-0967-a09b-ea0df6666f18 Audit-Id=da0a7dfa-09d9-4cd7-8f5a-aa25f7900853 timestamp=2024-04-12T13:18:06.575-0700 | |
2024-04-12T13:18:06.575-0700 [ERROR] provider.terraform-provider-kubernetes_v2.29.0_x5: Response contains error diagnostic: tf_resource_type=kubernetes_node_taint @caller=github.com/hashicorp/terraform-plugin-go@v0.22.1/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail= diagnostic_summary="nodes "ip-10-253-35-81.ec2.internal" not found" tf_proto_version=5.4 tf_provider_addr=registry.terraform.io/hashicorp/kubernetes tf_req_id=40cd2607-d1d6-96ca-c3bf-6a52f45bf311 tf_rpc=ReadResource @module=sdk.proto diagnostic_severity=ERROR timestamp=2024-04-12T13:18:06.575-0700 | |
2024-04-12T13:18:06.575-0700 [ERROR] vertex "kubernetes_node_taint.test" error: nodes "ip-10-253-35-81.ec2.internal" not found | |
2024-04-12T13:18:06.575-0700 [ERROR] vertex "kubernetes_node_taint.test (expand)" error: nodes "ip-10-253-35-81.ec2.internal" not found | |
2024-04-12T13:18:06.575-0700 [INFO] backend/local: plan operation completed | |
Planning failed. Terraform encountered an error while generating this plan. | |
╷ | |
│ Error: nodes "ip-10-253-35-81.ec2.internal" not found | |
│ | |
│ with kubernetes_node_taint.test, | |
│ on terraform.tf line 1, in resource "kubernetes_node_taint" "test": | |
│ 1: resource "kubernetes_node_taint" "test" { | |
│ | |
╵ | |
2024-04-12T13:18:06.579-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" | |
2024-04-12T13:18:06.581-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.29.0/linux_amd64/terraform-provider-kubernetes_v2.29.0_x5 pid=3568605 | |
2024-04-12T13:18:06.581-0700 [DEBUG] provider: plugin exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment