Skip to content

Instantly share code, notes, and snippets.

@dzervas
Created June 29, 2024 14:42
Show Gist options
  • Save dzervas/65367fb9c94c15bf7e0260f781a63503 to your computer and use it in GitHub Desktop.
Save dzervas/65367fb9c94c15bf7e0260f781a63503 to your computer and use it in GitHub Desktop.
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "helm_release.magicentry" references: [kubernetes_namespace.magicentry (expand)]
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/helm\"]" references: []
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "kubernetes_manifest.cm_client_issuer (expand)" references: [helm_release.cert_manager (expand) kubernetes_manifest.cm_client_ca (expand)]
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "helm_release.ingress_nginx (expand)" references: []
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "local.domains (expand)" references: [var.domain var.domain]
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "module.invidious_ingress.output.host_list (expand)" references: [module.invidious_ingress.local.partial (expand) module.invidious_ingress.var.fqdn (expand)]
2024-06-29T17:35:22.788+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_letsencrypt_issuer (expand) is no longer needed, removing
2024-06-29T17:35:22.788+0300 [DEBUG] pruneUnusedNodes: helm_release.invidious (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_cloudflare_api_token (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: helm_release.snipeit (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_client_issuer (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: helm_release.ingress_nginx (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress.output.host_list (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress.output.host_obj (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_certificates (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_namespace.longhorn-system (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress.output.host_obj (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress.local.partial (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress.var.fqdn (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_service.ntfy (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress.var.additional_annotations (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: helm_release.sealed_secrets_controller (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: helm_release.descheduler (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress.output.host_list (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: local.fqdn (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_client_ca (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_namespace.descheduler (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_stateful_set.ntfy (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: helm_release.cert_manager (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress.local.partial (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_config_map.ntfy_config (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress.var.fqdn (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: local.cert_duration (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress.var.additional_annotations (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress.var.mtls_enabled (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: local.domains (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.invidious_ingress (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress.var.mtls_enabled (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_namespace.ntfy (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_cluster_issuer (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] pruneUnusedNodes: module.snipeit_ingress (expand) is no longer needed, removing
2024-06-29T17:35:22.789+0300 [DEBUG] Starting graph walk: walkApply
2024-06-29T17:35:22.789+0300 [DEBUG] created provider logger: level=debug
2024-06-29T17:35:22.790+0300 [INFO] provider: configuring client automatic mTLS
2024-06-29T17:35:22.794+0300 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/helm/2.14.0/linux_amd64/terraform-provider-helm_v2.14.0_x5 args=[".terraform/providers/registry.terraform.io/hashicorp/helm/2.14.0/linux_amd64/terraform-provider-helm_v2.14.0_x5"]
2024-06-29T17:35:22.794+0300 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/helm/2.14.0/linux_amd64/terraform-provider-helm_v2.14.0_x5 pid=3460936
2024-06-29T17:35:22.794+0300 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/helm/2.14.0/linux_amd64/terraform-provider-helm_v2.14.0_x5
2024-06-29T17:35:22.812+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: configuring server automatic mTLS: timestamp="2024-06-29T17:35:22.812+0300"
2024-06-29T17:35:22.822+0300 [DEBUG] provider.terraform-provider-helm_v2.14.0_x5: plugin address: address=/tmp/plugin656282316 network=unix timestamp="2024-06-29T17:35:22.822+0300"
2024-06-29T17:35:22.822+0300 [DEBUG] provider: using plugin: version=5
2024-06-29T17:35:22.829+0300 [DEBUG] created provider logger: level=debug
2024-06-29T17:35:22.829+0300 [INFO] provider: configuring client automatic mTLS
2024-06-29T17:35:22.830+0300 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/helm\"]" changed the config value, but that value is unused
2024-06-29T17:35:22.833+0300 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.31.0/linux_amd64/terraform-provider-kubernetes_v2.31.0_x5 args=[".terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.31.0/linux_amd64/terraform-provider-kubernetes_v2.31.0_x5"]
2024-06-29T17:35:22.833+0300 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.31.0/linux_amd64/terraform-provider-kubernetes_v2.31.0_x5 pid=3460951
2024-06-29T17:35:22.833+0300 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.31.0/linux_amd64/terraform-provider-kubernetes_v2.31.0_x5
2024-06-29T17:35:22.859+0300 [INFO] provider.terraform-provider-kubernetes_v2.31.0_x5: configuring server automatic mTLS: timestamp="2024-06-29T17:35:22.859+0300"
2024-06-29T17:35:22.869+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: plugin address: address=/tmp/plugin3184682754 network=unix timestamp="2024-06-29T17:35:22.869+0300"
2024-06-29T17:35:22.869+0300 [DEBUG] provider: using plugin: version=5
2024-06-29T17:35:22.877+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] Experiments enabled: []: timestamp="2024-06-29T17:35:22.877+0300"
2024-06-29T17:35:22.883+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: 2024/06/29 17:35:22 [DEBUG] Using kubeconfig: /home/dzervas/.kube/config
2024-06-29T17:35:22.883+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: 2024/06/29 17:35:22 [DEBUG] Using custom current context: "gr"
2024-06-29T17:35:22.883+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: 2024/06/29 17:35:22 [DEBUG] Using overridden context: api.Context{LocationOfOrigin:"", Cluster:"", AuthInfo:"", Namespace:"", Extensions:map[string]runtime.Object(nil)}
2024-06-29T17:35:22.883+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: 2024/06/29 17:35:22 [DEBUG] Enabling HTTP requests/responses tracing
2024-06-29T17:35:22.884+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: Using kubeconfig file: tf_mux_provider="*proto5server.Server" tf_provider_addr=registry.terraform.io/hashicorp/kubernetes tf_req_id=372a60d2-5d62-57f9-9d01-b7d4d9d3eb2a @caller=github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/provider_configure.go:64 @module=kubernetes path=/home/dzervas/.kube/config tf_rpc=ConfigureProvider timestamp="2024-06-29T17:35:22.884+0300"
2024-06-29T17:35:22.884+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: Using custom current context: context=gr tf_req_id=372a60d2-5d62-57f9-9d01-b7d4d9d3eb2a tf_provider_addr=registry.terraform.io/hashicorp/kubernetes tf_rpc=ConfigureProvider @caller=github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/provider_configure.go:83 @module=kubernetes tf_mux_provider="*proto5server.Server" timestamp="2024-06-29T17:35:22.884+0300"
2024-06-29T17:35:22.884+0300 [DEBUG] provider.terraform-provider-kubernetes_v2.31.0_x5: Using overridden context: context="map[cluster: user:]" tf_mux_provider="*proto5server.Server" tf_rpc=ConfigureProvider @module=kubernetes tf_provider_addr=registry.terraform.io/hashicorp/kubernetes tf_req_id=372a60d2-5d62-57f9-9d01-b7d4d9d3eb2a @caller=github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/provider_configure.go:95 timestamp="2024-06-29T17:35:22.884+0300"
2024-06-29T17:35:22.885+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-06-29T17:35:22.888+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/kubernetes/2.31.0/linux_amd64/terraform-provider-kubernetes_v2.31.0_x5 pid=3460951
2024-06-29T17:35:22.888+0300 [DEBUG] provider: plugin exited
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] [resourceDiff: auth] Start: timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] [INFO] GetHelmConfiguration start: timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] Using kubeconfig: /home/dzervas/.kube/config: timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] Using custom current context: "gr": timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] Using overidden context: api.Context{LocationOfOrigin:"", Cluster:"", AuthInfo:"", Namespace:"", Extensions:map[string]runtime.Object(nil)}: timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [INFO] Successfully initialized kubernetes config: timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:22.894+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:22 [DEBUG] [INFO] GetHelmConfiguration success: timestamp="2024-06-29T17:35:22.894+0300"
2024-06-29T17:35:23.454+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] resourceDiff: getChart failed: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Adzervas%2Fcharts%2Fmagicentry%3Apull&service=ghcr.io: 403 Forbidden: timestamp="2024-06-29T17:35:23.454+0300"
2024-06-29T17:35:23.454+0300 [WARN] Provider "registry.terraform.io/hashicorp/helm" produced an invalid plan for helm_release.magicentry, 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:
- .disable_crd_hooks: planned value cty.False for a non-computed attribute
- .max_history: planned value cty.NumberIntVal(0) for a non-computed attribute
- .force_update: planned value cty.False for a non-computed attribute
- .lint: planned value cty.False for a non-computed attribute
- .reuse_values: planned value cty.False for a non-computed attribute
- .verify: planned value cty.False for a non-computed attribute
- .replace: planned value cty.False for a non-computed attribute
- .description: planned value cty.StringVal("Upgrade complete") for a non-computed attribute
- .skip_crds: planned value cty.False for a non-computed attribute
- .wait_for_jobs: planned value cty.False for a non-computed attribute
- .wait: planned value cty.True for a non-computed attribute
- .disable_webhooks: planned value cty.False for a non-computed attribute
- .render_subchart_notes: planned value cty.True for a non-computed attribute
- .cleanup_on_fail: planned value cty.False for a non-computed attribute
- .disable_openapi_validation: planned value cty.False for a non-computed attribute
- .pass_credentials: planned value cty.False for a non-computed attribute
- .reset_values: planned value cty.False for a non-computed attribute
- .timeout: planned value cty.NumberIntVal(300) for a non-computed attribute
- .dependency_update: planned value cty.False for a non-computed attribute
- .recreate_pods: planned value cty.False for a non-computed attribute
helm_release.magicentry: Modifying... [id=auth]
2024-06-29T17:35:23.455+0300 [INFO] Starting apply for helm_release.magicentry
2024-06-29T17:35:23.455+0300 [DEBUG] helm_release.magicentry: applying the planned Update change
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] setting computed for "metadata" from ComputedKeys: timestamp="2024-06-29T17:35:23.456+0300"
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] [INFO] GetHelmConfiguration start: timestamp="2024-06-29T17:35:23.457+0300"
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] Using kubeconfig: /home/dzervas/.kube/config: timestamp="2024-06-29T17:35:23.457+0300"
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] Using custom current context: "gr": timestamp="2024-06-29T17:35:23.457+0300"
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] Using overidden context: api.Context{LocationOfOrigin:"", Cluster:"", AuthInfo:"", Namespace:"", Extensions:map[string]runtime.Object(nil)}: timestamp="2024-06-29T17:35:23.457+0300"
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [INFO] Successfully initialized kubernetes config: timestamp="2024-06-29T17:35:23.457+0300"
2024-06-29T17:35:23.457+0300 [INFO] provider.terraform-provider-helm_v2.14.0_x5: 2024/06/29 17:35:23 [DEBUG] [INFO] GetHelmConfiguration success: timestamp="2024-06-29T17:35:23.457+0300"
2024-06-29T17:35:23.911+0300 [ERROR] provider.terraform-provider-helm_v2.14.0_x5: Response contains error diagnostic: diagnostic_summary="failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Adzervas%2Fcharts%2Fmagicentry%3Apull&service=ghcr.io: 403 Forbidden" tf_proto_version=5.6 tf_provider_addr=provider tf_resource_type=helm_release @caller=github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto tf_req_id=005ac31f-deef-5773-3208-c9434ada6985 tf_rpc=ApplyResourceChange diagnostic_detail="" diagnostic_severity=ERROR timestamp="2024-06-29T17:35:23.911+0300"
2024-06-29T17:35:23.911+0300 [DEBUG] State storage *cloud.State declined to persist a state snapshot
2024-06-29T17:35:23.911+0300 [ERROR] vertex "helm_release.magicentry" error: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Adzervas%2Fcharts%2Fmagicentry%3Apull&service=ghcr.io: 403 Forbidden
2024-06-29T17:35:23.911+0300 [DEBUG] cloud/state: state read serial is: 50; serial is: 50
2024-06-29T17:35:23.911+0300 [DEBUG] cloud/state: state read lineage is: 169d4f71-150d-1adb-9860-c3a1c1bdf6ee; lineage is: 169d4f71-150d-1adb-9860-c3a1c1bdf6ee
│ Error: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Adzervas%2Fcharts%2Fmagicentry%3Apull&service=ghcr.io: 403 Forbidden
│ with helm_release.magicentry,
│ on magicentry.tf line 10, in resource "helm_release" "magicentry":
│ 10: resource "helm_release" "magicentry" {
2024-06-29T17:35:24.206+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-06-29T17:35:24.209+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/helm/2.14.0/linux_amd64/terraform-provider-helm_v2.14.0_x5 pid=3460936
2024-06-29T17:35:24.209+0300 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment