Skip to content

Commit bd5a332

Browse files
rebtooropenshift-merge-bot[bot]
authored andcommitted
Add retry logic to ceph node package installation
The dnf task installing os-net-config and openvswitch on ceph nodes had no retry, causing transient repo failures to fail the entire job. Added retries: 3 with delay: 10 to both setup_cephnodes.yaml and setup_cephnodes_ipv6.yaml, consistent with other dnf tasks in the playbooks. Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
1 parent a471c8b commit bd5a332

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

hooks/playbooks/setup_cephnodes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
- os-net-config
5353
- openvswitch
5454
state: present
55+
retries: 5
56+
delay: 30
57+
register: _ceph_pkgs_install
58+
until: _ceph_pkgs_install is success
5559

5660
- name: Generate os-net-config YAML
5761
ansible.builtin.copy:

hooks/playbooks/setup_cephnodes_ipv6.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
- os-net-config
5353
- openvswitch
5454
state: present
55+
retries: 5
56+
delay: 30
57+
register: _ceph_pkgs_install
58+
until: _ceph_pkgs_install is success
5559

5660
- name: Generate os-net-config YAML
5761
ansible.builtin.copy:

0 commit comments

Comments
 (0)