Ticket 3435

Summary: slurm.conf Syntax Checker
Product: Slurm Reporter: Paul Edmon <pedmon>
Component: OtherAssignee: Unassigned Developer <dev-unassigned>
Status: OPEN --- QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: aeng, bas.vandervlies, ben.roberts, gmdexter, hltcoe-help, joe.teumer, justin.lecher, kilian, Michael.Hammond, novosirj, philip, pkenyon, racsadmin, RC_LICENSES, sergey_meirovich, sts, tmerritt, twurgl, will
Version: 19.05.3   
Hardware: Linux   
OS: Linux   
See Also: https://bugs.schedmd.com/show_bug.cgi?id=12664
https://bugs.schedmd.com/show_bug.cgi?id=12665
Site: Harvard University Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---
Ticket Depends on: 3445    
Ticket Blocks:    

Description Paul Edmon 2017-01-27 14:26:06 MST
We use puppet to manage our slurm deployment here and we do some syntax checking to validate our slurm.conf before we deploy it.  However right now it is rather kludgy, namely we do:

SLURM_CONF="test.conf" scontrol show config

However, that requires the scontrol to be able to talk to the slurm master, which isn't really great for testing a conf, especially if your master is down due to a conf syntax error.

Could we get an independent slurm.conf (and frankly slurmdbd.conf) syntax checker than can be run independent of a working master that just looks to see if the conf is reasonable?  This is especially important for node names to make sure that those names are resolvable.

This would be an immense help for the automatic testing and validating of slurm in our environment.  Thanks.
Comment 1 hltcoe-help 2020-02-10 09:25:06 MST
We would also very much appreciate this feature.
Comment 2 Justin Lecher 2020-02-10 09:25:17 MST
On annual leave until the 19th February 2020.


Please call me on my mobile in urgent cases.

________________________________

AstraZeneca UK Limited is a company incorporated in England and Wales with registered number:03674842 and its registered office at 1 Francis Crick Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA.

This e-mail and its attachments are intended for the above named recipient only and may contain confidential and privileged information. If they have come to you in error, you must not copy or show them to anyone; instead, please reply to this e-mail, highlighting the error to the sender and then immediately delete the message. For information about how AstraZeneca UK Limited and its affiliates may process information, personal data and monitor communications, please see our privacy notice at www.astrazeneca.com<https://www.astrazeneca.com>
Comment 3 Phil Kauffman 2020-09-30 13:34:09 MDT
Here to +1 this feature request for the same reason as OP.
Comment 4 Todd Merritt 2021-07-28 09:41:31 MDT
+1 please add this feature.
Comment 5 Tom Wurgler 2021-10-13 09:20:47 MDT
+ 1 here as well
Comment 6 Joe 2021-11-12 15:08:55 MST
+1 would be very useful
Comment 7 Justin Lecher 2021-11-12 15:09:09 MST
I am on leave Thursday/Friday. Will catch up with emails on Monday.

In urgent cases, please call my mobile
________________________________

AstraZeneca UK Limited is a company incorporated in England and Wales with registered number:03674842 and its registered office at 1 Francis Crick Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA.

This e-mail and its attachments are intended for the above named recipient only and may contain confidential and privileged information. If they have come to you in error, you must not copy or show them to anyone; instead, please reply to this e-mail, highlighting the error to the sender and then immediately delete the message. For information about how AstraZeneca UK Limited and its affiliates may process information, personal data and monitor communications, please see our privacy notice at www.astrazeneca.com<https://www.astrazeneca.com>
Comment 8 Gordon Dexter 2022-06-10 12:57:28 MDT
Same as the original reporter, we are deploying slurm.conf via puppet.  The puppet config can be syntax checked and validated by CI/CD before deployment, but slurm.conf and associated files (gres.conf, cgroup.conf, and any includes) cannot.  This is especially worse since a single syntax error in any of those files will effectively crash the entire cluster.  The SLURM_CONF= method doesn't work for us either, because the verification happens in a docker container, isolated from the actual slurm instance.

There are almost a dozen people on this ticket, plus multiple duplicate tickets.  This is clearly an important feature, and its absence in Slurm is causing us substantial heartburn.
Comment 9 Justin Lecher 2022-06-10 13:39:58 MDT
I will be returning to the office on the 13th May 2022. I will respond to your message when I return.
________________________________

AstraZeneca UK Limited is a company incorporated in England and Wales with registered number:03674842 and its registered office at 1 Francis Crick Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA.

This e-mail and its attachments are intended for the above named recipient only and may contain confidential and privileged information. If they have come to you in error, you must not copy or show them to anyone; instead, please reply to this e-mail, highlighting the error to the sender and then immediately delete the message. For information about how AstraZeneca UK Limited and its affiliates may process information, personal data and monitor communications, please see our privacy notice at www.astrazeneca.com<https://www.astrazeneca.com>
Comment 10 Mark Allen 2022-08-24 11:41:48 MDT
I'll bump this. We'd love to be able to syntax check our config files prior to them getting deployed.
Comment 11 UAB Research Computing 2022-12-08 15:16:28 MST
Ditto from UAB, ability to validate Slurm/slurmdbd/gres/cgroup.conf via CI/CD would be outstanding.
Comment 12 Justin Lecher 2022-12-08 15:48:45 MST
I am workshops and only sporadically available. Please apologise any delay in email response.

________________________________

AstraZeneca UK Limited is a company incorporated in England and Wales with registered number:03674842 and its registered office at 1 Francis Crick Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA.

This e-mail and its attachments are intended for the above named recipient only and may contain confidential and privileged information. If they have come to you in error, you must not copy or show them to anyone; instead, please reply to this e-mail, highlighting the error to the sender and then immediately delete the message. For information about how AstraZeneca UK Limited and its affiliates may process information, personal data and monitor communications, please see our privacy notice at www.astrazeneca.com<https://www.astrazeneca.com>
Comment 13 Ryan Novosielski 2023-09-15 15:16:17 MDT
Discovered this feature request looking to find out the syntax for using it (I apparently incorrectly remembered that there was such a feature). Want to give it a +1. We also /do/ have a support contract if that helps.