Skip to content

Commit

Permalink
fix (slurmctld): fix the resume action.
Browse files Browse the repository at this point in the history
This commit modifies the command run by the *resume* action. The previous command
set the state argument as *resume*, which was leading to the error *slurm_update error: Invalid node state specified*.
  • Loading branch information
matheushent committed Oct 23, 2024
1 parent 9aee46d commit a9ef44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charms/slurmctld/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _on_resume_nodes_action(self, event: ActionEvent) -> None:
event.log(f"Resuming {nodes}.")

try:
cmd = f"scontrol update nodename={nodes} state=resume"
cmd = f"scontrol update nodename={nodes} state=idle"
subprocess.check_output(shlex.split(cmd))
event.set_results({"status": "resuming", "nodes": nodes})
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit a9ef44a

Please sign in to comment.