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
The nomad plan command doesn't include the diff for the arguments for script checks, found at group.service.check.args. I discovered this while doing some testing for liveness/readiness checks, using the following job spec:
Then the resulting plan will show that there is a diff to the check, but not show the contents of that diff:
$ nomad plan ./example.nomad
+/- Job: "example"
+/- Task Group: "web" (1 in-place update)
+/- Service {
AddressMode: "auto"
EnableTagOverride: "false"
Name: "leader"
Namespace: "default"
OnUpdate: "require_healthy"
PortLabel: "www"
TaskName: ""
+/- Check {
AddressMode: ""
Body: ""
Command: "/bin/sh"
Expose: "false"
FailuresBeforeCritical: "0"
GRPCService: ""
GRPCUseTLS: "false"
InitialStatus: ""
Interval: "10000000000"
Method: ""
Name: "readiness-leader"
OnUpdate: "ignore"
Path: ""
PortLabel: ""
Protocol: ""
SuccessBeforePassing: "0"
TLSSkipVerify: "false"
TaskName: "httpd"
Timeout: "5000000000"
Type: "script"
}
}
Task: "httpd"
Scheduler dry-run:
- All tasks successfully allocated.
Job Modify Index: 10
To submit the job with version verification run:
nomad job run -check-index 10 ./example.nomad
When running the job with the check-index flag, the job will only be run if the
job modify index given matches the server-side version. If the index has
changed, another user has modified the job and the plan's results are
potentially invalid.
The serviceCheckDiff function looks like a likely spot where we might be missing the logic here, because arrays need special casing.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
The
nomad plan
command doesn't include the diff for the arguments for script checks, found atgroup.service.check.args
. I discovered this while doing some testing for liveness/readiness checks, using the following job spec:jobspec
If I run that jobspec and then modify it as follows:
Then the resulting plan will show that there is a diff to the check, but not show the contents of that diff:
The
serviceCheckDiff
function looks like a likely spot where we might be missing the logic here, because arrays need special casing.The text was updated successfully, but these errors were encountered: