You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-07-15T16:48:49.160+0530 [INFO] provider.terraform-provider-nomad_v2.0.0-beta.1_x5: 2023/07/15 16:48:49 [DEBUG] reading
information for job "httpbin" in namespace "default": timestamp=2023-07-15T16:48:49.160+0530
2023-07-15T16:48:49.222+0530 [INFO] provider.terraform-provider-nomad_v2.0.0-beta.1_x5: 2023/07/15 16:48:49 [DEBUG] found jo
b "httpbin" in namespace "default": timestamp=2023-07-15T16:48:49.222+0530
2023-07-15T16:48:49.222+0530 [INFO] provider.terraform-provider-nomad_v2.0.0-beta.1_x5: 2023/07/15 16:48:49 [DEBUG] resource
JobCustomizeDiff: timestamp=2023-07-15T16:48:49.244+0530
2023-07-15T16:48:49.245+0530 [INFO] provider.terraform-provider-nomad_v2.0.0-beta.1_x5: 2023/07/15 16:48:49
2023-07-15T16:48:49.277+0530 [WARN] Provider "registry.terraform.io/hashicorp/nomad" produced an invalid plan for nomad_job.
httpbin, 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:
- .deregister_on_destroy: planned value cty.True for a non-computed attribute
- .deregister_on_id_change: planned value cty.True for a non-computed attribute
- .hcl1: planned value cty.False for a non-computed attribute
- .detach: planned value cty.True for a non-computed attribute
Panic Output
NA
Expected Behavior
No need to apply anything
Actual Behavior
~ update in-place
Terraform will perform the following actions:
# nomad_job.httpbin will be updated in-place
~ resource "nomad_job" "httpbin" {
~ allocation_ids = [
- "3c2d8184-950c-c2ad-8d8b-552448f1656b",
] -> (known after apply)
id = "httpbin"
~ modify_index = "2621" -> (known after apply)
name = "httpbin"
# (10 unchanged attributes hidden)
}
Steps to Reproduce
terraform apply
Re-format the jobspec (spaces, tabs).
terraform apply
Important Factoids
Single region, single DC, ACL enabled deployment. TLS enabled (not mTLS).
References
#290 is similar (or even same) but created this bug for a very small setup repro.
The text was updated successfully, but these errors were encountered:
My $0.02 - Terraform job resource detaches (default behaviour) before completing the actual placement - hence, we may not get the alloc_id. But when read later, it may show alloc_id which is different from the prev run and tf tries to match it.
EDIT: I tried running terraform refresh and terraform plan still shows the change.
EDIT2: Could it be non-changing jobspec - e.x spaces, tabs, comments etc ?
Terraform Version
Nomad Version
Provider Configuration
Environment Variables
Do you have any Nomad specific environment variable set in the machine running Terraform?
Affected Resource(s)
Terraform Configuration Files
A dead simple job:
Debug Output
Panic Output
NA
Expected Behavior
No need to apply anything
Actual Behavior
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
Single region, single DC, ACL enabled deployment. TLS enabled (not mTLS).
References
#290 is similar (or even same) but created this bug for a very small setup repro.
The text was updated successfully, but these errors were encountered: