-
Notifications
You must be signed in to change notification settings - Fork 269
R&R Slurm integration #5003
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
R&R Slurm integration #5003
Conversation
Summary of ChangesHello @sarthakag, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates Google Cloud's Repair and Recovery (R&R) functionality directly into the Slurm scheduler. It introduces automated detection of faulty Slurm nodes, initiates repairs via the GCP API, and manages the entire repair lifecycle. This includes tracking repair progress and dynamically updating Slurm node states to reflect successful recovery or persistent failures, thereby enhancing the resilience and self-healing capabilities of Slurm clusters on GCP. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces an integration with a Repair and Recovery (R&R) mechanism for Slurm nodes on GCP. A new repair.py script is added to handle the lifecycle of a node repair, from calling the GCP API to report a faulty host to monitoring the operation and bringing the node back online. The slurmsync.py script is modified to detect nodes that need repair based on their DRAIN state and reason, and to trigger the repair process. The changes look good overall, but I have a few suggestions for improving the robustness and maintainability of the new repair.py script, mainly around file handling, exception handling, and command-line argument safety. Additionally, the new functionality is not covered by unit tests, which is encouraged by the project's contribution guidelines.
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
6f334c0 to
13fe9fd
Compare
052ccce to
3740b21
Compare
6489ee6 to
e6e4ea3
Compare
Neelabh94
left a comment
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.
Some changes requested
...y/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/slurmsync.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...s/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/tests/test_repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Show resolved
Hide resolved
...y/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/slurmsync.py
Show resolved
Hide resolved
...y/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/slurmsync.py
Show resolved
Hide resolved
...nity/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/repair.py
Outdated
Show resolved
Hide resolved
...y/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/slurmsync.py
Outdated
Show resolved
Hide resolved
bytetwin
left a comment
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.
Please address the comments
|
Addressed all comments. PTAL @bytetwin @Neelabh94 |
59f4df2
into
GoogleCloudPlatform:develop
Adds R&R API integration for Slurm
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.