Skip to content

Fix jobcompletion logfile existance #103

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

Merged
merged 5 commits into from
Apr 13, 2021
Merged

Fix jobcompletion logfile existance #103

merged 5 commits into from
Apr 13, 2021

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Apr 9, 2021

Setting openhpc_slurm_job_comp_type (slurm.conf parameter JobCompType) to jobcomp/filetxt enables job completion records, which can be viewed using sacct -c. This is much more limited than full accounting info, but could be useful now Slurm 20.11 doesn't support filetxt accounting storage and enabling accounting requires deploying/configuring mysql + slurmdbd (hence b3b4f44 disabling accounting by default).

This PR fixes the runtime play so that the job completion logfile (role var openhpc_slurm_job_comp_loc, slurm.conf parameter JobCompLoc) is writable by user slurm. Without it slurmctld fails on startup with a message like:

error: open <JobCompLoc>: Permission denied

It also adds molecule/test12 for this using openhpc_slurm_job_comp_type: jobcomp/filetxt and role default openhpc_slurm_job_comp_loc, and updates the README to clarify why you might want to use this.

Closes #102 which contains lots of info re. slurm behavior, probably mostly not relevant here.

@sjpb sjpb requested a review from jovial April 9, 2021 14:47
@sjpb sjpb merged commit 54247a5 into master Apr 13, 2021
@sjpb sjpb deleted the fix/jobcomp branch April 13, 2021 09:36
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

Successfully merging this pull request may close these issues.

filetxt storage locations not created if not default
2 participants