summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-07-14 12:13:25 -0400
committerScott Dodson <sdodson@redhat.com>2017-07-18 12:03:17 -0400
commit5a94fe5b074d01a3b16db8a05c47c31e484e5ebe (patch)
treede1449bb64012c39228a156007f49aabfd4601ba /playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
parent44fb8d5d9825bd5a708062dfe371763566d014e7 (diff)
downloadopenshift-5a94fe5b074d01a3b16db8a05c47c31e484e5ebe.tar.gz
openshift-5a94fe5b074d01a3b16db8a05c47c31e484e5ebe.tar.bz2
openshift-5a94fe5b074d01a3b16db8a05c47c31e484e5ebe.tar.xz
openshift-5a94fe5b074d01a3b16db8a05c47c31e484e5ebe.zip
Add drain retries after 60 second delay
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
index 1d1e440d4..af15ec5b2 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
@@ -28,6 +28,10 @@
command: >
{{ hostvars[groups.oo_first_master.0].openshift.common.admin_binary }} drain {{ openshift.node.nodename | lower }} --force --delete-local-data --ignore-daemonsets
delegate_to: "{{ groups.oo_first_master.0 }}"
+ register: l_upgrade_nodes_drain_result
+ until: not l_upgrade_nodes_drain_result | failed
+ retries: 60
+ delay: 60
roles:
- lib_openshift