Skip to content

Commit

Permalink
Add retry to cephadm install
Browse files Browse the repository at this point in the history
  • Loading branch information
jirimacku authored and openshift-merge-bot[bot] committed Jan 9, 2025
1 parent 5a88ea6 commit 88bd379
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 @@ -147,3 +147,5 @@ cifmw_cephadm_repository_override: false
cifmw_cephadm_version: "squid"
# bug in cephadm: if you skip "prepare host" it will fail
cifmw_cephadm_prepare_host: false
cifmw_cephadm_wait_install_retries: 8
cifmw_cephadm_wait_install_delay: 15
4 changes: 4 additions & 0 deletions roles/cifmw_cephadm/tasks/install_cephadm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
ansible.builtin.dnf:
name: cephadm
state: present
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 88bd379

Please sign in to comment.