From eff193128396be851052b82d48c84d016a006e17 Mon Sep 17 00:00:00 2001 From: forselli-stratio <41321889+forselli-stratio@users.noreply.github.com> Date: Thu, 27 May 2021 21:02:23 +0200 Subject: [PATCH] Add retries to 'Set label for route reflector' task (#7645) --- roles/network_plugin/calico/rr/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/network_plugin/calico/rr/tasks/main.yml b/roles/network_plugin/calico/rr/tasks/main.yml index 42b6144bd..61645526d 100644 --- a/roles/network_plugin/calico/rr/tasks/main.yml +++ b/roles/network_plugin/calico/rr/tasks/main.yml @@ -9,3 +9,8 @@ command: >- {{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }} 'i-am-a-route-reflector=true' --overwrite + changed_when: false + register: calico_rr_label + until: calico_rr_label is succeeded + delay: "{{ retry_stagger | random + 3 }}" + retries: 10