Hi, I am new to nomad and trying to run the job below:
job "slurm-cn" {
priority = 95 # 100 is higher priority
datacenters = ["mydc"]
type = "system"
group "slurm-cn" {
task "slurmd" {
driver = "raw_exec"
user = "root"
config {
command = "/usr/sbin/slurmd"
args = ["-D"]
}
}
service {
provider = "nomad"
name = "slurmd"
port = "slurmd"
check {
name = "slurmd"
type = "tcp"
interval = "9s"
timeout = "3s"
}
}
network {
port "slurmd" {
static = 6818 # host linked port to TCP 6818
}
}
}
}
My problem is that I am getting this error:
$ nomad job run slurm-job.hcl
Error submitting job: Unexpected response code: 500 (rpc error: 1 error occurred:
* Task group slurm-cn validation failed: 1 error occurred:
* Task group service validation failed: 1 error occurred:
* Service[0] slurmd validation failed: 1 error occurred:
* Service with provider nomad cannot include Check blocks)
The documentation says I can use “check” stanza inside the “service” one with nomad provider check Block - Job Specification | Nomad by HashiCorp
What am I doing wrong?
thank you