Skip to content

Commit 88bd379

Browse files
jirimackuopenshift-merge-bot[bot]
authored andcommitted
Add retry to cephadm install
1 parent 5a88ea6 commit 88bd379

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

roles/cifmw_cephadm/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,5 @@ cifmw_cephadm_repository_override: false
147147
cifmw_cephadm_version: "squid"
148148
# bug in cephadm: if you skip "prepare host" it will fail
149149
cifmw_cephadm_prepare_host: false
150+
cifmw_cephadm_wait_install_retries: 8
151+
cifmw_cephadm_wait_install_delay: 15

roles/cifmw_cephadm/tasks/install_cephadm.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
ansible.builtin.dnf:
3131
name: cephadm
3232
state: present
33+
register: task_result
34+
retries: "{{ cifmw_cephadm_wait_install_retries }}"
35+
delay: "{{ cifmw_cephadm_wait_install_delay }}"
36+
until: task_result is success
3337

3438
- name: Stat cephadm file
3539
ansible.builtin.stat:

0 commit comments

Comments
 (0)