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
dsloanm
changed the title
Gres written incorrectly when using Node model and slurmconfig editor
[Bug] Gres written incorrectly when using Node model and slurmconfig editor
Dec 16, 2024
Taking a quick peak at this issue, it's a symptom of #34 where we don't have good type checking enabled. Gres can be a comma-delimited list, which means that it's a list[str] type rather than just str. Since there's no real type checking, slurmutils will happily try to marshal a value using the assigned callback even if the value is the incorrect type.
The Gres configuration option is assigned the CommaSeparatorCallback so the value for Gres must be passed as a list:
Bug Description
When using the
slurmconfig
editor with theNode
model, Gres values are written out with commas separating each character of the string.To Reproduce
Running:
produces
slurm.conf
:NodeName=ip-172-31-38-11 Gres=g,p,u,:,t,e,s,l,a,_,t,4,:,1
rather than expected:
NodeName=ip-172-31-38-11 Gres=gpu:tesla_t4:1
Environment
Running locally with the latest main commit: 60bc8e6.
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: