Skip to content

Commit 1087f19

Browse files
committed
cope with nodes still running reboot job in check_slurm playbook
1 parent 1343125 commit 1087f19

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

ansible/ci/check_slurm.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,9 @@
66
shell: 'sinfo --noheader --format="%N %P %a %l %D %t" | sort' # using --format ensures we control whitespace: Partition,partition_state,max_jobtime,num_nodes,node_state,node_name
77
register: sinfo
88
changed_when: false
9-
until: not ("boot" in sinfo.stdout or "idle*" in sinfo.stdout or "down" in sinfo.stdout)
9+
until: sinfo.stdout_lines == expected_sinfo
1010
retries: 10
1111
delay: 5
12-
- name: Check nodes have expected slurm state
13-
assert:
14-
that: sinfo.stdout_lines == expected_sinfo
15-
fail_msg: |
16-
sinfo output not as expected:
17-
actual:
18-
{{ sinfo.stdout_lines }}
19-
expected:
20-
{{ expected_sinfo }}
21-
<end>
2212
vars:
2313
expected_sinfo:
2414
- " extra up 60-00:00:00 0 n/a" # empty partition

0 commit comments

Comments
 (0)