| Summary: | slurmrestd GrpSubmit and MaxJobsAccrue | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Matt Ezell <ezellma> |
| Component: | slurmrestd | Assignee: | Nate Rini <nate> |
| Status: | RESOLVED INFOGIVEN | QA Contact: | |
| Severity: | 4 - Minor Issue | ||
| Priority: | --- | CC: | barlowat |
| Version: | 21.08.5 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| See Also: | https://bugs.schedmd.com/show_bug.cgi?id=13727 | ||
| Site: | ORNL-OLCF | 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: | 12897 | ||
| Ticket Blocks: | |||
|
Description
Matt Ezell
2022-02-25 13:31:42 MST
(In reply to Matt Ezell from comment #0) > Our development team encountered an issue setting “GrpSubmit” and > “MaxJobsAccrue” with the QOS API endpoint with OpenAPI DB version 0.0.38 on > Slurm 22.05.0-0pre1 through the master branch around 3pm EST, February 24th. Please feel free to just give the hash of the commit as a reference. (In reply to Matt Ezell from comment #0) > I think the problem is there is no way to set the QOS fields “GrpSubmit” and > “MaxJobsAccrue” through the API. Perhaps you could add the following: Please note that in bug#13195 we are going to sync all the names in dbv38 plugin to the names used in sacctmgr/sacct to make naming easier for everyone. (In reply to Matt Ezell from comment #0) > “MaxJobsAccrue” through the API Please verify MaxJobsAccrue is the correct field desired as that is not a field of QOS but of associations currently under "max/jobs/accruing". (In reply to Nate Rini from comment #6) > (In reply to Matt Ezell from comment #0) > > “MaxJobsAccrue” through the API > > Please verify MaxJobsAccrue is the correct field desired as that is not a > field of QOS but of associations currently under "max/jobs/accruing". Reducing severity while waiting for feedback. The hash of the commit I used on February 25th: c600cc9. I see that MaxJobsAccrue exists for QOS since I can run "sacctmgr list qos format=MaxJobsAccrue" and get a non-null result. However, maybe that will be changing soon? I see under https://slurm.schedmd.com/resource_limits.html#qos, that MaxJobsAccruePerAccount and MaxJobsAccruePerUser are now options. I would be fine if I could set either MaxJobsAccrue or both MaxJobsAccruePer[User|Account]. (In reply to Aaron Barlow from comment #8) > The hash of the commit I used on February 25th: c600cc9. > > I see that MaxJobsAccrue exists for QOS since I can run "sacctmgr list qos > format=MaxJobsAccrue" and get a non-null result. However, maybe that will be > changing soon? I see under > https://slurm.schedmd.com/resource_limits.html#qos, that > MaxJobsAccruePerAccount and MaxJobsAccruePerUser are now options. I would be > fine if I could set either MaxJobsAccrue or both > MaxJobsAccruePer[User|Account]. Looking at the code. When dumping MaxJobsAccrue for a QOS, that is an alias for MaxJobsAccruePerUser. When dumping MaxJobsAccrue for an association, that is a field upon itself. 'MaxJobsAccrue' is not documented under 'SPECIFICATIONS FOR QOS' but only under 'GENERAL SPECIFICATIONS FOR ASSOCIATION BASED ENTITIES' in the sacctmgr man pages. It looks like an undocumented backward compatibility parameter was being used here when dumping 'MaxJobsAccrue' with QOS. For the MaxJobsAccrue part of this bug report then, adding the ability to set MaxJobsAccruePerUser and MaxJobsAccruePerAccount through the API would satisfy my need for MaxJobsAccrue to be set. (In reply to Aaron Barlow from comment #12) > For the MaxJobsAccrue part of this bug report then, adding the ability to > set MaxJobsAccruePerUser and MaxJobsAccruePerAccount through the API would > satisfy my need for MaxJobsAccrue to be set. Please note that both of these fields are added by bug#12796 to dbv0.0.38 plugin in Slurm-22.05. > https://github.com/SchedMD/slurm/commit/de6bcf65025eb83b2f819a368bf6c07978601a53 Please give a test to make sure it meets your needs. If not, please respond to this ticket and we can continue debugging. |