Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions roles/version_update_single_node/tasks/update_status_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
else version_update_single_node_retry_count | int + 1
}}"

# Do not remove this magic delay.
# Likely sometimes we query for update status before HyperCore actually started the update.
# Then we get back something like "update completed", but this refers to some older update.
# More testing needed before we can replace this with something smarter.
# What could be smarter:
# - look at version_update_status_info.build_id,
# wait until it is equal to version/build_id we are updating to.
# - remember version_update_status_info might return some bogus data if HyperCore was never updated.
# Why:
# - testing this role even in dry-run mode will take at least 20*60 sec. One lunch per test.
- name: Pause before checking update status - checks will report FAILED-RETRYING until update COMPLETE/TERMINATED
ansible.builtin.wait_for:
timeout: 60
delegate_to: localhost

- name: Check update status - will report FAILED-RETRYING until update COMPLETE/TERMINATED
scale_computing.hypercore.version_update_status_info:
register: version_update_single_node_update_status
Expand Down