Skip to content

Commit c21f5d3

Browse files
committed
Add retry mechanism to Ceph OSD addition task
This change ensures the `Add OSDs individually` task is retried up to 3 times with a 10-second delay between attempts if the Ceph orchestrator command fails (non-zero return code). This enhances task resilience by allowing transient issues to resolve before marking the operation as failed. Resolves #161
1 parent 00a08ed commit c21f5d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roles/cephadm/tasks/osds.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@
2020
# NOTE: Without this, the delegate hosts's ansible_host variable will not
2121
# be respected.
2222
ansible_host: "{{ mon_ansible_host if 'mons' in group_names else hostvars[groups['mons'][0]].ansible_host }}"
23+
until: osd_add_result.rc == 0
24+
retries: 3
25+
delay: 10

0 commit comments

Comments
 (0)