Description of changes:
Enforced error handling for the existence of slurmdbd.conf, which is created when Slurm accounting is enabled. This seems to be a prerequisite of slurmrestd. Without it, the Slurm REST API will not be able to perform useful functions relating to jobs (and in my testing will not even start).
Testing:
Created a cluster with Slurm accounting configured and ran the post-install.sh script edited to run the updated version of slurm_rest_api.rb
Successfully pinged the jobs endpoint with no errors
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
25
Description of changes: Enforced error handling for the existence of
slurmdbd.conf
, which is created when Slurm accounting is enabled. This seems to be a prerequisite ofslurmrestd
. Without it, the Slurm REST API will not be able to perform useful functions relating to jobs (and in my testing will not even start).Testing:
slurm_rest_api.rb
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.