open-nomad/jobspec/test-fixtures
Tim Gross 17bd930ca9
logs: fix missing allocation logs after update to Nomad 1.5.4 (#17087)
When the server restarts for the upgrade, it loads the `structs.Job` from the
Raft snapshot/logs. The jobspec has long since been parsed, so none of the
guards around the default value are in play. The empty field value for `Enabled`
is the zero value, which is false.

This doesn't impact any running allocation because we don't replace running
allocations when either the client or server restart. But as soon as any
allocation gets rescheduled (ex. you drain all your clients during upgrades),
it'll be using the `structs.Job` that the server has, which has `Enabled =
false`, and logs will not be collected.

This changeset fixes the bug by adding a new field `Disabled` which defaults to
false (so that the zero value works), and deprecates the old field.

Fixes #17076
2023-05-04 16:01:18 -04:00
..
artifacts.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
bad-artifact.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
bad-ports.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
basic.hcl logs: fix missing allocation logs after update to Nomad 1.5.4 (#17087) 2023-05-04 16:01:18 -04:00
basic_wrong_key.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul-namespace.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
csi-plugin.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
default-job.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
distinctHosts-constraint.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
distinctProperty-constraint.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
incorrect-service-def.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
job-with-kill-signal.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
migrate-job.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
multi-network.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
multi-resource.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
multi-vault.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
multiregion.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
overlapping-ports.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
parameterized_job.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
parse-ports.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
periodic-cron.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
regexp-constraint.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reschedule-job-unlimited.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reschedule-job.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
resources-cores.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-check-bad-header-2.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-check-bad-header.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-check-driver-address.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-check-initial-status.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-check-pass-fail.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-check-restart.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-enable-tag-override.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-meta.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-provider.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
service-tagged-address.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
set-contains-constraint.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
specify-job.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-nested-config.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-scaling-policy-invalid-resource.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-scaling-policy-invalid-type.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-scaling-policy-missing-name.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-scaling-policy-multi-cpu.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-scaling-policy-multi-name.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task-scaling-policy.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-network-with-hostname.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-network.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-scaling-policy-invalid-type.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-scaling-policy-minimal.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-scaling-policy-missing-max.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-scaling-policy-multi-policy.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-scaling-policy-with-label.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-scaling-policy.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-check-expose.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-check.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-gateway-ingress.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-gateway-mesh.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-gateway-terminating.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-local-service.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-native.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-proxy.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-resources.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-sidecar_disablecheck.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-sidecar_meta.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-connect-sidecar_task-name.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-enable-tag-override.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tg-service-proxy-expose.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
vault_inheritance.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
version-constraint.hcl [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00