-
Notifications
You must be signed in to change notification settings - Fork 7
feat!: overhaul slurmctld charm API #26
feat!: overhaul slurmctld charm API #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good. Just a couple of questions and places where I want to know your thoughts. Let me know if you have any questions!
src/interface_slurmd.py
Outdated
partition_as_dict = json.loads(partition_as_json) | ||
except json.JSONDecodeError as e: | ||
logger.error(e) | ||
raise (e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise (e) | |
raise e |
These changes make a number of modifications to the slurm charms. * Removes no longer used interfaces * remove slurmctld dependency on slurmdbd and slurmd * support partitions with 0 nodes * refactor relation data * recreate how configs are written * support user supplied partition configuration * start modeling config * add type checking * remove unused code * support partition events and slurmd node events * remove upgrade-charm hook as it did nothing * use systemd and apt charm libs * rename interfaces * update readme to reflect new interface names and minimal deployment using only slurmctld and slurmd * address pr feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to merge this pull request too. Thank you for this work @jamesbeedy 🎉
Similar to slurmdbd-operator, just going to drop .mypy_cache
from .gitignore since we're now using pyright. I think this pull request is in good shape for landing the API overhaul. We can open subsequent pull requests to focus and further refine the features we need 😄
Using pyright now instead of mypy
Please reference the Slurm Charms Change Summary Document for an in-depth explanation of these changes.
These changes make several modifications to the slurmctld charm.