Skip to content

Commit e3a9d3e

Browse files
authored
Merge pull request #105 from stackhpc/fix/slurmctld-start
Ensure slurmctld actually up before completing restart handler
2 parents 54247a5 + a3f5342 commit e3a9d3e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

handlers/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# NOTE: we need this running before slurmd
2222
# Allows you to reconfigure slurmctld from another host
23-
- name: Restart slurmctld service
23+
- name: Issue slurmctld restart command
2424
service:
2525
name: "slurmctld"
2626
state: restarted
@@ -29,6 +29,18 @@
2929
when:
3030
- openhpc_slurm_service_started | bool
3131
- openhpc_slurm_control_host in play_hosts
32+
listen: Restart slurmctld service
33+
34+
- name: Check slurmctld actually restarted
35+
wait_for:
36+
port: 6817
37+
delay: 10
38+
delegate_to: "{{ openhpc_slurm_control_host }}"
39+
run_once: true
40+
when:
41+
- openhpc_slurm_service_started | bool
42+
- openhpc_slurm_control_host in play_hosts
43+
listen: Restart slurmctld service
3244

3345
- name: Restart slurmd service
3446
service:

0 commit comments

Comments
 (0)