Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

feat: use slurm snap for slurmrestd operations #21

Merged
merged 5 commits into from
Jul 26, 2024

Conversation

jedel1043
Copy link
Contributor

@jedel1043 jedel1043 commented Jul 24, 2024

Description

Uses the slurm_ops library to manage slurmrestd.
Adds support for running CI

How was the code tested?

Locally on an Ubuntu Noble development machine.

Checklist

  • I am the author of these changes, or I have the rights to submit them.
  • I have added the relevant changes to the README and/or documentation.
  • I have self reviewed my own code.
  • All requested changes and/or review comments have been resolved.

slurmrestd cannot run without this package installed, since it requires the libslurmfull.so file.
We don't really need to deploy against slurmd to check that slurmrestd works. This saves some CI time.
@jedel1043 jedel1043 marked this pull request as draft July 24, 2024 00:06
@jedel1043 jedel1043 force-pushed the slurm-snap branch 2 times, most recently from a5db983 to f05fcd2 Compare July 25, 2024 22:16
@jedel1043 jedel1043 marked this pull request as ready for review July 25, 2024 22:29
Copy link
Member

@NucciTheBoss NucciTheBoss left a comment

Choose a reason for hiding this comment

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

Just one comment. Once it is addressed, I'm good to merge this PR!

src/constants.py Outdated
Comment on lines 10 to 11
SLURMRESTD_USER_NAME = "snap_daemon"
SLURMRESTD_GROUP_NAME = "snap_daemon"
Copy link
Member

Choose a reason for hiding this comment

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

Are these constants used anywhere anymore? A quick search seems to show that all references were removed when the deprecated methods were culled on the legacy operations manager.

Copy link
Member

@NucciTheBoss NucciTheBoss left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for taking those unused constants out!

@NucciTheBoss NucciTheBoss merged commit a9dcb15 into charmed-hpc:experimental Jul 26, 2024
5 checks passed
@jedel1043 jedel1043 deleted the slurm-snap branch July 26, 2024 18:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants