Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong field name to extract user name for job description structure in job_submit.lua #17

Open
rezib opened this issue Sep 20, 2023 · 1 comment

Comments

@rezib
Copy link
Contributor

rezib commented Sep 20, 2023

Job submit lua script expects to extract user name from username field of job_desc structure:
https://github.com/edf-hpc/slurm-llnl-misc-plugins/blob/master/job_submit/job_submit.lua#L252

It is used in several log messages and in the test for WCKEY_USER_EXCEPTION_FILE optional feature.

However, Slurm exports the username in user_name field (with an underscore) of this structure:
https://github.com/SchedMD/slurm/blob/master/src/plugins/job_submit/lua/job_submit_lua.c#L713

As a result, job_desc.username is always nil in Job submit Lua script logic and log messages.

@mchouque
Copy link

mchouque commented Sep 21, 2023

Will be fixed when commit 37cbd26 is packaged in a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants