summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-10 09:25:36 -0400
committerScott Dodson <sdodson@redhat.com>2018-01-10 11:01:11 -0500
commit0841917f05cfad2701164edbb271167c277d3300 (patch)
tree97ea4e657da1a3513d0ffe5b3f5518521af466d9 /playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml
parent31d19c5e68e61d004a93db738772c120e7dd0eb5 (diff)
downloadopenshift-0841917f05cfad2701164edbb271167c277d3300.tar.gz
openshift-0841917f05cfad2701164edbb271167c277d3300.tar.bz2
openshift-0841917f05cfad2701164edbb271167c277d3300.tar.xz
openshift-0841917f05cfad2701164edbb271167c277d3300.zip
Add the ability to specify a timeout for node drain operations
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml
index 6d59bfd0b..e259b5d09 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_scale_group.yml
@@ -50,11 +50,11 @@
delegate_to: "{{ groups.oo_first_master.0 }}"
register: l_upgrade_nodes_drain_result
until: not (l_upgrade_nodes_drain_result is failed)
- retries: "{{ 1 if openshift_upgrade_nodes_drain_timeout | default(0) == '0' else 0 | int }}"
+ retries: "{{ 1 if ( openshift_upgrade_nodes_drain_timeout | default(0) | int ) == 0 else 0 }}"
delay: 5
failed_when:
- l_upgrade_nodes_drain_result is failed
- - openshift_upgrade_nodes_drain_timeout | default(0) == '0'
+ - openshift_upgrade_nodes_drain_timeout | default(0) | int == 0
# Alright, let's clean up!
- name: clean up the old scale group