Skip to content

Commit

Permalink
Moved explicit slurm start to avoid errors caused by resume and suspe…
Browse files Browse the repository at this point in the history
…nd programs not being copied to their final location yet
  • Loading branch information
XaverStiensmeier committed Feb 19, 2024
1 parent f6962b9 commit 4868f27
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions resources/playbook/roles/bibigrid/tasks/042-slurm-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,6 @@
- slurmdbd
- slurmrestd

- name: Enable slurmdbd and slurmrestd services
systemd:
name: "{{ item }}"
enabled: true
masked: false
state: started
daemon_reload: true
with_items:
- slurmdbd
- slurmrestd

- name: Start slurm explicit after all dependencies are configured
systemd:
name: slurmctld
state: started

- name: Register Slurm users home dir
shell: "set -o pipefail && grep slurm /etc/passwd | cut -d ':' -f 6"
register: slurm_home
Expand Down Expand Up @@ -180,6 +164,31 @@
groups:
- ansible

- name: Generate location specific worker userdata
template:
src: slurm/worker_userdata.j2
dest: "/opt/slurm/userdata_{{ hostvars[item].cloud_identifier }}.txt"
owner: slurm
group: ansible
mode: "0640"
with_items: "{{ groups.vpngtw + groups.master }}"

- name: Enable slurmdbd and slurmrestd services
systemd:
name: "{{ item }}"
enabled: true
masked: false
state: started
daemon_reload: true
with_items:
- slurmdbd
- slurmrestd

- name: Start slurm explicit after all dependencies are configured
systemd:
name: slurmctld
state: started


- when: slurm_home.stdout != '/opt/slurm'
block:
Expand Down Expand Up @@ -210,12 +219,3 @@
- slurmd
- slurmdbd
- slurmrestd

- name: Generate location specific worker userdata
template:
src: slurm/worker_userdata.j2
dest: "/opt/slurm/userdata_{{ hostvars[item].cloud_identifier }}.txt"
owner: slurm
group: ansible
mode: "0640"
with_items: "{{ groups.vpngtw + groups.master }}"

0 comments on commit 4868f27

Please sign in to comment.