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

feat(slurm_ops): add gres.conf configuration file editor to SlurmctldManager #58

Merged

Conversation

NucciTheBoss
Copy link
Member

This PR adds a gres.conf editor to SlurmctldManager so that we can configure GPUs in Charmed HPC through the gres.conf file. Generic resources need to be declared in gres.conf so that we can then declare nodes that have these resources within slurm.conf.

Misc.

  1. I took some time to clean up the slurm_ops unit tests by moving test cases into their own files. test_slurm_ops.py was starting to become quite big so I broke tests down by focus area. Operations, package management, configuration management, etc.
  2. I reorganized to _ConfigManager child classes to be in alphabetical order, so it makes the git diff appear larger that it actually is 😅

Other changes:

* Reordered configuration manager classes to be in alphabetical order.
* Bump the API version of slurmutils being pulled to 0.10.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Other changes:

* Add unit tests for new gres.conf editor on `SlurmctldManager`.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Signed-off-by: Jason C. Nucciarone <[email protected]>
@NucciTheBoss NucciTheBoss added the enhancement New feature or request label Dec 11, 2024
Copy link
Contributor

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Also, loving the new structure of the tests!

@NucciTheBoss NucciTheBoss merged commit 685dee7 into charmed-hpc:main Dec 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants