-
Notifications
You must be signed in to change notification settings - Fork 59
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
slurm: Call slurm_init() once before any call to Slurm API #148
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #148 +/- ##
==========================================
+ Coverage 64.20% 64.64% +0.43%
==========================================
Files 27 27
Lines 5588 5886 +298
==========================================
+ Hits 3588 3805 +217
- Misses 2000 2081 +81
☔ View full report in Codecov by Sentry. |
Thanks!
This looks fine to me, but could I ask why |
Since Slurm 20.11, slurm_init() needs to be called before any call to the Slurm API to make sure the config file is read in. We cannot call it in mod_slurm_init() or in mod_slurm_wcoll() directly as it requires slurm to be configured before use, thus pdsh would fail whenever the slurm plugin is found but Slurm is not configured correctly. Signed-off-by: Egbert Eich <eich@suse.com>
@grondo Sorry for the late reply, I've missed your question. |
Only print message when debug is enabled: This avoids users getting alarmed unnecessarily. pdsh will install .la files as well and cycle thru all installed files when attempting to load modules. These should probably not be installed at all. Signed-off-by: Egbert Eich <eich@suse.com>
@e4t - sorry this one languished so long. Your solution works, and more people have been hitting this issue so I'm merging. |
Since Slurm 20.11, slurm_init() needs to be called before any call to the Slurm API to make sure the config file is read in. We cannot call it in mod_slurm_init() or in mod_slurm_wcoll() directly as it requires slurm to be configured before use, thus pdsh would fail whenever the slurm plugin is found but Slurm is not configured correctly.