Skip to content

Commit 40cec41

Browse files
authored
fix: handle unregistered node in scontrol update during worker init (#2330)
1 parent 1d82590 commit 40cec41

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

images/worker/worker_init.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,13 @@ def apply_node_topology(hostname: str, topology: str) -> None:
373373
)
374374
if result.returncode != 0:
375375
output = (result.stdout + result.stderr).strip()
376+
if "Invalid node name" in output:
377+
logger.warning(
378+
"scontrol update: node %s not yet registered (dynamic node first start), skipping: %s",
379+
hostname,
380+
output,
381+
)
382+
return
376383
logger.error("scontrol update failed (rc=%d): %s", result.returncode, output)
377384
sys.exit(1)
378385

0 commit comments

Comments
 (0)