diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-07-10 04:31:10 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-07-10 04:31:10 -0400 |
commit | 14bde2f7d99b2a0f01259834135bbdc324bcac70 (patch) | |
tree | 4fb0521c26e69ebf17428761ae29c3b6c44a9671 /roles | |
parent | b03b50a7a408470c28f2c8d1752cda541b75f8ee (diff) | |
parent | 025011c1e462d8419b81d8c5085cb92163ac4280 (diff) | |
download | openshift-14bde2f7d99b2a0f01259834135bbdc324bcac70.tar.gz openshift-14bde2f7d99b2a0f01259834135bbdc324bcac70.tar.bz2 openshift-14bde2f7d99b2a0f01259834135bbdc324bcac70.tar.xz openshift-14bde2f7d99b2a0f01259834135bbdc324bcac70.zip |
Merge pull request #332 from brenton/master
Adding retry logic to handle node registration race conditions
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml index b9ab16e7c..d17f3f532 100644 --- a/roles/openshift_manage_node/tasks/main.yml +++ b/roles/openshift_manage_node/tasks/main.yml @@ -1,3 +1,12 @@ +- name: Wait for Node Registration + command: > + {{ openshift.common.client_binary }} get node {{ item }} + register: omd_get_node + until: omd_get_node.rc == 0 + retries: 10 + delay: 5 + with_items: openshift_nodes + - name: Handle unscheduleable node command: > {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=false |