Preinstall Soperator utility scripts to jail#1070
Merged
Conversation
4286455 to
4d75a0a
Compare
asteny
approved these changes
Jun 26, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR preinstalls Soperator utility scripts into the jail container, enhances user creation with optional internal SSH key support, and updates the Slurm CRD defaults for taskPluginParam.
- Adds two helper scripts (
soperator_instance_login.sh,slurm_task_info.sh) and integrates them into the jail image - Extends
createuser.shwith a--without-internal-sshflag to control SSH key generation - Updates Helm charts, CRD YAMLs, and Go API types to default
taskPluginParamto"Autobind=Cores"
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| internal/render/common/configmap.go | Included CR_ONE_TASK_PER_CORE in SelectTypeParameters |
| images/jail/scripts/soperator_instance_login.sh | New script for interactive instance login |
| images/jail/scripts/slurm_task_info.sh | New script to display Slurm task resource bindings |
| images/jail/scripts/createuser.sh | Added --without-internal-ssh option and conditional key gen |
| images/jail/jail.dockerfile | Preinstalled Soperator scripts under /opt/soperator_utils |
| helm/soperator/crds/slurmcluster-crd.yaml | Set default taskPluginParam: Autobind=Cores |
| helm/soperator-crds/templates/slurmcluster-crd.yaml | Mirror default update for Helm chart |
| config/crd/bases/slurm.nebius.ai_slurmclusters.yaml | Mirror default update for CRD base |
| api/v1/slurmcluster_types.go | Updated Kubebuilder default annotation for TaskPluginParam |
Comments suppressed due to low confidence (1)
images/jail/scripts/slurm_task_info.sh:9
- Nested double quotes inside the command substitution will break the shell syntax. Use single quotes around the grep and sed patterns (e.g., grep 'Cpus_allowed_list:' | sed 's/Cpus_allowed_list:\t//') or escape the inner quotes.
"$(cat /proc/self/status | grep "Cpus_allowed_list:" | sed "s/Cpus_allowed_list:\t//g")" \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here’s a summary of the changes made in the PR:
1. Default Values for Slurm Configuration
2. Slurm Scheduler Configuration
3. Jail Docker Image Enhancements
4. User Creation Script Update
5. New Utility Scripts
Summary:
The PR sets Autobind=Cores as the default for Slurm’s taskPluginParam, tweaks Slurm core scheduling, adds two admin/diagnostic scripts to the jail image, and enhances user creation with an option to skip internal SSH key generation.