Skip to content

Commit 10e37a1

Browse files
authored
Merge pull request #224 from ScaleComputing/fix-update-status-check
Fix update status check
2 parents 58f8b31 + 355e65a commit 10e37a1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

roles/version_update_single_node/tasks/update_status_check.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
ansible.builtin.set_fact:
66
retry_count: "{{ 0 if retry_count is undefined else retry_count | int + 1 }}"
77

8-
# We might be able to remove this task
9-
- name: Pause before checking update status - checks will report FAILED-RETRYING until update COMPLETE/TERMINATED
10-
ansible.builtin.wait_for:
11-
timeout: 60
12-
delegate_to: localhost
13-
148
- name: Check update status - will report FAILED-RETRYING until update COMPLETE/TERMINATED
159
scale_computing.hypercore.version_update_status_info:
1610
register: update_status
17-
until: update_status.record.update_status == "COMPLETE" | default(omit) or update_status.record.update_status == "TERMINATING" | default(omit)
11+
until: >-
12+
update_status.record != None and
13+
(
14+
update_status.record.update_status == "COMPLETE" or
15+
update_status.record.update_status == "TERMINATING"
16+
)
1817
retries: 100
1918
delay: 30
2019
ignore_unreachable: true

0 commit comments

Comments
 (0)