From d216b51c276361d49fd89be513e52c5078359dee Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Fri, 20 Oct 2017 11:14:31 -0400
Subject: 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>
---
 .../common/openshift-cluster/upgrades/upgrade_control_plane.yml     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
index c37a5f9ab..0fb39caac 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
+++ b/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: >
-- 
cgit v1.2.3