Browse Source

Retry reconcile in case of error and give up eventually

Handles spurious failures and does not get mad if it just cannot do it.

Signed-off-by: Simo Sorce <simo@redhat.com>
Simo Sorce 7 years ago
parent
commit
d216b51c27

+ 6 - 0
playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml

@@ -268,6 +268,12 @@
         - "/tmp/{{ __master_shared_resource_viewer_file }}"
         delete_after: true
       when: __shared_resource_viewer_protected is not defined
+      register: result
+      retries: 3
+      delay: 5
+      until: result.rc == 0
+      ignore_errors: true
+
 
   - name: Reconcile Security Context Constraints
     command: >