diff options
author | Simo Sorce <simo@redhat.com> | 2017-10-20 11:14:31 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-10-20 11:29:22 -0400 |
commit | d216b51c276361d49fd89be513e52c5078359dee (patch) | |
tree | cd6fceea8b4a26e77e1795e994c2c4cc1baa2452 /playbooks/common | |
parent | 94a75431044d6124dcb22659cbecbb09c3cb3a38 (diff) | |
download | openshift-d216b51c276361d49fd89be513e52c5078359dee.tar.gz openshift-d216b51c276361d49fd89be513e52c5078359dee.tar.bz2 openshift-d216b51c276361d49fd89be513e52c5078359dee.tar.xz openshift-d216b51c276361d49fd89be513e52c5078359dee.zip |
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>
Diffstat (limited to 'playbooks/common')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml | 6 |
1 files changed, 6 insertions, 0 deletions
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: > |