Skip to content

Commit

Permalink
Add retry to the cephadm installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jirimacku authored and openshift-merge-bot[bot] committed Jan 17, 2025
1 parent d9efb45 commit 0bbd5d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/cifmw_cephadm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,5 @@ cifmw_cephadm_update_log_commands:
cmd: "log last cephadm"
cifmw_cephadm_wait_for_dashboard_retries: 10
cifmw_cephadm_wait_for_dashboard_delay: 20
cifmw_cephadm_wait_install_retries: 8
cifmw_cephadm_wait_install_delay: 15
4 changes: 4 additions & 0 deletions roles/cifmw_cephadm/tasks/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
name: cephadm
state: latest
releasever: "{{ ansible_facts['distribution_major_version'] }}"
register: task_result
retries: "{{ cifmw_cephadm_wait_install_retries }}"
delay: "{{ cifmw_cephadm_wait_install_delay }}"
until: task_result is success

- name: Stat cephadm file
ansible.builtin.stat:
Expand Down

0 comments on commit 0bbd5d8

Please sign in to comment.