Skip to content

Instantly share code, notes, and snippets.

@wallacepf
Created November 13, 2021 03:52
Show Gist options
  • Save wallacepf/d7b85d8e657797a70f43dd55b6f84022 to your computer and use it in GitHub Desktop.
Save wallacepf/d7b85d8e657797a70f43dd55b6f84022 to your computer and use it in GitHub Desktop.
Nomad TF Provider Debug
Terraform v1.0.9
on linux_amd64
Initializing plugins and modules...
{"@level":"info","@message":"Terraform 1.0.9","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:28.417995Z","terraform":"1.0.9","type":"version","ui":"0.1.0"}
2021-11-13T03:40:31.869Z [INFO] provider: configuring client automatic mTLS
2021-11-13T03:40:31.911Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4 args=[.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4]
2021-11-13T03:40:31.911Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4 pid=214
2021-11-13T03:40:31.912Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4
2021-11-13T03:40:31.922Z [INFO] provider.terraform-provider-nomad_v1.4.15_x4: configuring server automatic mTLS: timestamp=2021-11-13T03:40:31.922Z
2021-11-13T03:40:31.963Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: plugin address: network=unix address=/tmp/plugin186903270 timestamp=2021-11-13T03:40:31.963Z
2021-11-13T03:40:31.963Z [DEBUG] provider: using plugin: version=5
2021-11-13T03:40:32.022Z [TRACE] provider.stdio: waiting for stdio data
{"@level":"info","@message":"nomad_namespace.cicd: Plan to create","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.029079Z","change":{"resource":{"addr":"nomad_namespace.cicd","module":"","resource":"nomad_namespace.cicd","implied_provider":"nomad","resource_type":"nomad_namespace","resource_name":"cicd","resource_key":null},"action":"create"},"type":"planned_change"}
{"@level":"info","@message":"nomad_job.gl-runner: Plan to create","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.029204Z","change":{"resource":{"addr":"nomad_job.gl-runner","module":"","resource":"nomad_job.gl-runner","implied_provider":"nomad","resource_type":"nomad_job","resource_name":"gl-runner","resource_key":null},"action":"create"},"type":"planned_change"}
2021-11-13T03:40:32.028Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4 pid=214
2021-11-13T03:40:32.028Z [DEBUG] provider: plugin exited
2021-11-13T03:40:32.028Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-11-13T03:40:32.031Z [INFO] provider: configuring client automatic mTLS
2021-11-13T03:40:32.075Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4 args=[.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4]
2021-11-13T03:40:32.075Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4 pid=223
2021-11-13T03:40:32.075Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4
2021-11-13T03:40:32.085Z [INFO] provider.terraform-provider-nomad_v1.4.15_x4: configuring server automatic mTLS: timestamp=2021-11-13T03:40:32.085Z
2021-11-13T03:40:32.131Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: plugin address: address=/tmp/plugin445927969 network=unix timestamp=2021-11-13T03:40:32.131Z
2021-11-13T03:40:32.131Z [DEBUG] provider: using plugin: version=5
2021-11-13T03:40:32.185Z [TRACE] provider.stdio: waiting for stdio data
{"@level":"info","@message":"nomad_namespace.cicd: Creating...","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.194719Z","hook":{"resource":{"addr":"nomad_namespace.cicd","module":"","resource":"nomad_namespace.cicd","implied_provider":"nomad","resource_type":"nomad_namespace","resource_name":"cicd","resource_key":null},"action":"create"},"type":"apply_start"}
2021-11-13T03:40:32.195Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] Upserting namespace "cicd"
2021-11-13T03:40:32.200Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] Created namespace "cicd"
2021-11-13T03:40:32.200Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] Reading namespace "cicd"
{"@level":"info","@message":"nomad_namespace.cicd: Creation complete after 0s [id=cicd]","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.201675Z","hook":{"resource":{"addr":"nomad_namespace.cicd","module":"","resource":"nomad_namespace.cicd","implied_provider":"nomad","resource_type":"nomad_namespace","resource_name":"cicd","resource_key":null},"action":"create","id_key":"id","id_value":"cicd","elapsed_seconds":0},"type":"apply_complete"}
2021-11-13T03:40:32.201Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] Read namespace "cicd"
2021-11-13T03:40:32.204Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 error parsing old jobspec
2021-11-13T03:40:32.204Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 <nil>
2021-11-13T03:40:32.204Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 <nil>: Undefined -var variable; A "datacenters" variable was passed in the command line but was not found in known variables. To declare variable "datacenters", place this block in your job file
2021-11-13T03:40:32.204Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: <nil>: Undefined -var variable; A "namespace" variable was passed in the command line but was not found in known variables. To declare variable "namespace", place this block in your job file
2021-11-13T03:40:32.205Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] resourceJobCustomizeDiff
2021-11-13T03:40:32.208Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] namespace change forces new resource
{"@level":"info","@message":"nomad_job.gl-runner: Creating...","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.209501Z","hook":{"resource":{"addr":"nomad_job.gl-runner","module":"","resource":"nomad_job.gl-runner","implied_provider":"nomad","resource_type":"nomad_job","resource_name":"gl-runner","resource_key":null},"action":"create"},"type":"apply_start"}
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] setting computed for "allocation_ids" from ComputedKeys
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] setting computed for "task_groups.0.task.0.meta" from ComputedKeys
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] setting computed for "task_groups.0.meta" from ComputedKeys
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] setting computed for "task_groups.0.task.0.meta" from ComputedKeys
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] setting computed for "task_groups.0.task.0.meta" from ComputedKeys
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] setting computed for "task_groups.0.meta" from ComputedKeys
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 error parsing old jobspec
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 <nil>
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 <nil>: Undefined -var variable; A "datacenters" variable was passed in the command line but was not found in known variables. To declare variable "datacenters", place this block in your job file
2021-11-13T03:40:32.212Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: <nil>: Undefined -var variable; A "namespace" variable was passed in the command line but was not found in known variables. To declare variable "namespace", place this block in your job file
2021-11-13T03:40:32.220Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] job 'gitlab-runners' registered in namespace 'cicd'
2021-11-13T03:40:32.220Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] reading information for job "gitlab-runners" in namespace "cicd"
2021-11-13T03:40:32.221Z [DEBUG] provider.terraform-provider-nomad_v1.4.15_x4: 2021/11/13 03:40:32 [DEBUG] job "gitlab-runners" does not exist, so removing
{"@level":"info","@message":"nomad_job.gl-runner: Creation errored after 0s","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.222159Z","hook":{"resource":{"addr":"nomad_job.gl-runner","module":"","resource":"nomad_job.gl-runner","implied_provider":"nomad","resource_type":"nomad_job","resource_name":"gl-runner","resource_key":null},"action":"create","elapsed_seconds":0},"type":"apply_errored"}
{"@level":"error","@message":"Error: Provider produced inconsistent result after apply","@module":"terraform.ui","@timestamp":"2021-11-13T03:40:32.536116Z","diagnostic":{"severity":"error","summary":"Provider produced inconsistent result after apply","detail":"When applying changes to nomad_job.gl-runner, provider \"provider[\\\"registry.terraform.io/hashicorp/nomad\\\"]\" produced an unexpected new value: Root resource was present, but now absent.\n\nThis is a bug in the provider, which should be reported in the provider's own issue tracker."},"type":"diagnostic"}
2021-11-13T03:40:32.536Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-11-13T03:40:32.537Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/nomad/1.4.15/linux_amd64/terraform-provider-nomad_v1.4.15_x4 pid=223
2021-11-13T03:40:32.537Z [DEBUG] provider: plugin exited
Operation failed: failed running terraform apply (exit 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment