Repository navigation
Slurm: build a worker image with Apptainer and cwltool (slurmd-cwl), ReturnToService=2 - #144
Merged
Merged
Conversation
…ReturnToService=2
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.
Summary
First of two steps that prepare the Slurm workers for CWL Application Packages submitted through the Slurm REST API (EOEPCA/processing#11, input for the ZOO runner of EOEPCA/processing#8). This pull request builds and publishes the image but does not use it yet, so the running cluster does not change apart from
ReturnToService. The workers switch to the image in a second pull request, after the package exists and is public.images/slurmd-cwl/Dockerfileslurmd:26.05.4-ubuntu26.04plus Apptainer (Ubuntu 26.04 archive, 1.4.5), cwltool3.3.20260925135507in/opt/cwl(resolved packages in/opt/cwl/requirements.lock), nodejsimages/slurmd-cwl/VERSION26.05.4-ubuntu26.04-cwl.1. The first part must match the Slurm build of the other components.github/workflows/build-slurmd-cwl-image.yamlghcr.io/eoepca/eoepca-plus/slurmd-cwl:<VERSION>ondeploy-develop. Same pattern asbuild-opa-bundle.yamlargocd/eoepca/slurm/parts/values-slurm.yamlReturnToService=2Why ReturnToService=2
The operator sets a node DOWN while its pod restarts. With the Slurm default
ReturnToService=0the node stays DOWN until an admin resumes it. After the merge of #143 the worker pod restarted for the pinned image, andslinky-0stayed DOWN for about 36 minutes until it was resumed by hand. WithReturnToService=2, a DOWN node returns to service as soon as itsslurmdregisters with a valid configuration.On a local
kindcluster (Slinky 1.2, Slurm 26.05.4), after deleting the worker pod:ReturnToService=0: the node went DOWN ("slurm-operator: Pod is terminating") and stayed DOWN for the two minutes observed;ReturnToService=2: the node went DOWN and wasidleagain 10 seconds later.The setting is applied in place by the reconfigure sidecar (
controller.inplaceReconfigure: true), without a pod restart. That is why it comes in this pull request: it must be active before the second pull request restarts the worker pod.Note: with
2, a node that an admin sets DOWN on purpose also returns when itsslurmdre-registers ("The node could have been set DOWN for any reason",slurm.conf(5)). The manual describesReturnToServicefor DOWN nodes only, soDRAINis the way to take a node out of service (not tested here).Why the Ubuntu package of Apptainer
The upstream Apptainer 1.5.4
.debdepends onlibfuse3-3andlibsubid4. Ubuntu 26.04, the base of the Slinky images, has renamed both (libfuse3-4,libsubid5), so the upstream package does not install. Ubuntu 26.04 ships Apptainer 1.4.5 in its archive, signed and updated with the distribution. Apptainer runs unprivileged with user namespaces; no setuid helper is installed.Validation performed
apptainer --version1.4.5,cwltool --version3.3.20260925135507.alpine:3.22ran through Apptainer as an unprivileged uid.helm templateof theslurmchart 1.2.0 with the values file:ReturnToService=2in the controller configuration, the NodeSet image unchanged.ReturnToServicetest above.After the merge
deploy-developand pushesghcr.io/eoepca/eoepca-plus/slurmd-cwl:26.05.4-ubuntu26.04-cwl.1.slurm-worker-cwl) switches the NodeSet to the image.