TCL-5951: Add DeleteNode to SlurmControlInterface#25
Open
jhu-svg wants to merge 1 commit intoslurm-1.0-together-changesfrom
Open
TCL-5951: Add DeleteNode to SlurmControlInterface#25jhu-svg wants to merge 1 commit intoslurm-1.0-together-changesfrom
jhu-svg wants to merge 1 commit intoslurm-1.0-together-changesfrom
Conversation
Add DeleteNode(ctx, nodeset, nodeName) to the SlurmControlInterface, enabling the operator to programmatically remove Slurm node registrations. Previously, scontrol delete was only possible from inside a dying pod's PreStop hook, leaving ghost entries when pods terminate abnormally. The implementation follows the established MakeNodeDrain pattern: lookupClient → Get → Delete, with tolerateError on 404/204 for idempotency. Takes a node name string (not a pod) so callers can delete orphaned entries that have no corresponding pod.
12 tasks
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
DeleteNode(ctx, nodeset, nodeName)toSlurmControlInterface, enabling the operator to programmatically remove Slurm node registrationsscontrol deletewas only callable from inside a dying pod's PreStop hook — if that hook doesn't run (force-delete, OOM, node crash), the Slurm entry persists as a ghost foreverMakeNodeDrainpattern:lookupClient → Get → Delete, withtolerateErroron 404/204 for idempotencyContext
Part of TCL-5951 (Slinky operator lifecycle gaps). This is PR 1 of 3:
Test plan
go build ./...passesDeleteNodewas exercised on staging clusterjhu-test-slurm-slinky-gap-orphaned-node(s2-us-central-8a). Operator logs confirmed"deleting slurm node"for injected orphan nodes (slinky-99,slinky-5,slinky-10,slinky-42). Idempotency verified (deleting already-gone nodes returns nil).