Skip to content

Commit 24abaf4

Browse files
committed
Retry nmcli command when timeout reached
From time to time, Ansible is raising error: TASK [Ensure crc knows about its second NIC] crc | ERROR crc | { crc | "msg": "Error: Failed to modify connection 'ci-private-network': Timeout was reached\n", crc | "name": "ci-private-network", crc | "rc": 1 crc | } Add retry parameter to avoid CI job to fail.
1 parent 21b3b27 commit 24abaf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/playbooks/multinode-customizations.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
ip4: "{{ _crc_default_net_ip }}"
5656
gw4: "{{ _crc_default_gw }}"
5757
state: present
58+
register: _nmcli_result
59+
until: _nmcli_result is success
60+
retries: 5
61+
delay: 10
5862

5963
- name: Ensure crc does not get "public" DNS
6064
become: true

0 commit comments

Comments
 (0)