From a9ef44a31d554456cfb1442953705e9a63935fe4 Mon Sep 17 00:00:00 2001 From: Matheus Tosta Date: Wed, 23 Oct 2024 14:06:26 -0400 Subject: [PATCH] fix (slurmctld): fix the resume action. 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*. --- charms/slurmctld/src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charms/slurmctld/src/charm.py b/charms/slurmctld/src/charm.py index 4e0aa92..6d29585 100755 --- a/charms/slurmctld/src/charm.py +++ b/charms/slurmctld/src/charm.py @@ -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: