diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-10-10 10:33:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 10:33:03 -0400 |
commit | 5e07a172850ab6d8701fd4fc3a08a3414ecd37dd (patch) | |
tree | 533df5e3391a70cd27662af1e6358afc3cba36c0 /roles/openshift_node | |
parent | c5e95907b6311935a5fa7e56b2f00565b32e4fb6 (diff) | |
parent | ebef73fe94a0329011ca35ba33272789826ce282 (diff) | |
download | openshift-5e07a172850ab6d8701fd4fc3a08a3414ecd37dd.tar.gz openshift-5e07a172850ab6d8701fd4fc3a08a3414ecd37dd.tar.bz2 openshift-5e07a172850ab6d8701fd4fc3a08a3414ecd37dd.tar.xz openshift-5e07a172850ab6d8701fd4fc3a08a3414ecd37dd.zip |
Merge pull request #2571 from sdodson/node-retry-improvement
Retry starting master and node services once
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index be07bd2d3..8e9c9f511 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -152,17 +152,9 @@ - name: Start and enable node service: name={{ openshift.common.service_type }}-node enabled=yes state=started register: node_start_result - ignore_errors: yes - -- name: Wait 30 seconds for docker initialization whenever node has failed - pause: - seconds: 30 - when: node_start_result | failed - -- name: Start and enable node again - service: name={{ openshift.common.service_type }}-node enabled=yes state=started - register: node_start_result - when: node_start_result | failed + until: not node_start_result | failed + retries: 1 + delay: 30 - set_fact: node_service_status_changed: "{{ node_start_result | changed }}" |