| Summary: | node_features/helpers not working on 23.02 with 2 features | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Felix Abecassis <fabecassis> |
| Component: | slurmctld | Assignee: | Marshall Garey <mgarey> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | 3 - Medium Impact | ||
| Priority: | --- | CC: | bchristianse, bnabong, dwightman, jbernauer, lyeager, mgarey |
| Version: | 23.02.x | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | NVIDIA (PSLA) | Slinky Site: | --- |
| Alineos Sites: | --- | Atos/Eviden Sites: | --- |
| Confidential Site: | --- | Coreweave sites: | --- |
| Cray Sites: | --- | DS9 clusters: | --- |
| Google sites: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | NoveTech Sites: | --- |
| Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Tzag Elita Sites: | --- |
| Linux Distro: | --- | Machine Name: | |
| CLE Version: | Version Fixed: | 23.02.0pre1 | |
| Target Release: | --- | DevPrio: | --- |
| Emory-Cloud Sites: | --- | ||
|
Description
Felix Abecassis
2023-01-09 13:59:27 MST
Yes, you identified the offending commit. slurmctld is validating that the features the slurmd sends with the registration message are the same features that the job requested. This is why your job works when it requests nps=1&mig=off. We did this because the slurmd could report any features it wanted, even if those didn't match what the job requested, and that could be bad for the job or subsequent jobs scheduled on that node. However, you are adding on additional features (mig=off), correct? We didn't anticipate adding on additional features, but I can see how that could be useful. We are fine reverting that commit. Felix, What if we validate that the all reported (by slurmd) features are a superset of the features that are in slurmctld? I.e. a job requests nps=1, slurmctld will make the node's active features nps=1 (in addition to any static features). When the slurmd reports nps=1,mig=off, slurmctld validates that nps=1 is in the features reported by slurmd. Does this make sense to you? Do you have a use case where slurmd might report features that are not a superset of what the job requested? - Marshall Validating that the node boots in the expected configuration is very useful to detect problems so we do want to keep this behavior. > What if we validate that the all reported (by slurmd) features are a superset of the features that are in slurmctld? Yes, I think that would be fine, right now I don't see any issue with your proposed approach. == To elaborate on why I think the current behavior is a problem: previously, specifying only "nps=1" was equivalent to "nps=1&mig=<any>" i.e. mig=on OR mig=off OR mig=<unset>. On "master" this is now true only when a reboot is not needed. For example, if I have 3 nodes with nps=1&mig=on and 1 node with nps=1&mig=off, then "srun -N4 --constraint nps=1" will work and use the 4 nodes, because they were all in nps=1 mode. But if I have the last node in mode nps=2&mig=off state instead, then "srun -N4 --constraint nps=1" won't work as this node will fail at boot time with the "Reported active features different from currently active features" error. If you would like "--constraint=nps=1" to become equivalent to "--constraint=nps=1&mig=<unset>" (so *not* "on" or "off"), then I request to consider https://bugs.schedmd.com/show_bug.cgi?id=12289 again as it would alleviate the extra verbosity being required for users. (In reply to Felix Abecassis from comment #4) > Validating that the node boots in the expected configuration is very useful > to detect problems so we do want to keep this behavior. > > > What if we validate that the all reported (by slurmd) features are a superset of the features that are in slurmctld? > > Yes, I think that would be fine, right now I don't see any issue with your > proposed approach. Thanks for your feedback. We'll let you know when that is done. > == > > To elaborate on why I think the current behavior is a problem: previously, > specifying only "nps=1" was equivalent to "nps=1&mig=<any>" i.e. mig=on OR > mig=off OR mig=<unset>. This makes sense. > On "master" this is now true only when a reboot is not needed. > For example, if I have 3 nodes with nps=1&mig=on and 1 node with > nps=1&mig=off, then "srun -N4 --constraint nps=1" will work and use the 4 > nodes, because they were all in nps=1 mode. > > But if I have the last node in mode nps=2&mig=off state instead, then "srun > -N4 --constraint nps=1" won't work as this node will fail at boot time with > the "Reported active features different from currently active features" > error. > > If you would like "--constraint=nps=1" to become equivalent to > "--constraint=nps=1&mig=<unset>" (so *not* "on" or "off"),then I request to > consider https://bugs.schedmd.com/show_bug.cgi?id=12289 again as it would > alleviate the extra verbosity being required for users. I agree with you that keeping the 22.05 behavior makes sense. Hi, The fix is upstream in commit 07ecffa406. We updated NEWS and RELEASE_NOTES in commit 1a8b24f1bc. As discussed, slurmctld validates that the features reported by slurmd must be a superset of the features that are already saved in the slurmctld, which were updated when the job was scheduled. I'm closing this as fixed. |