diff options
author | Steve Milner <smilner@redhat.com> | 2017-07-06 10:33:27 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-07-18 12:03:14 -0400 |
commit | 4a38bc1bbcb743d94a481c539ccd723efe436da0 (patch) | |
tree | bfaef6df8aa8b2a984952d78b6dec2e972a1d947 /roles | |
parent | 057a58db0949900e75cf9f602b949bacbb78158f (diff) | |
download | openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.tar.gz openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.tar.bz2 openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.tar.xz openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.zip |
Test docker restart with retries 3 delay 30
Diffstat (limited to 'roles')
-rw-r--r-- | roles/calico/handlers/main.yml | 4 | ||||
-rw-r--r-- | roles/contiv/tasks/netplugin.yml | 4 | ||||
-rw-r--r-- | roles/docker/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/flannel/handlers/main.yml | 4 | ||||
-rw-r--r-- | roles/openshift_node_certificates/handlers/main.yml | 4 | ||||
-rw-r--r-- | roles/openshift_node_upgrade/tasks/restart.yml | 2 |
6 files changed, 18 insertions, 2 deletions
diff --git a/roles/calico/handlers/main.yml b/roles/calico/handlers/main.yml index 53cecfcc3..67fc0065f 100644 --- a/roles/calico/handlers/main.yml +++ b/roles/calico/handlers/main.yml @@ -8,3 +8,7 @@ systemd: name: "{{ openshift.docker.service_name }}" state: restarted + register: l_docker_restart_docker_in_calico_result + until: not l_docker_restart_docker_in_calico_result | failed + retries: 3 + delay: 30 diff --git a/roles/contiv/tasks/netplugin.yml b/roles/contiv/tasks/netplugin.yml index 0847c92bc..e861a2591 100644 --- a/roles/contiv/tasks/netplugin.yml +++ b/roles/contiv/tasks/netplugin.yml @@ -108,6 +108,10 @@ name: "{{ openshift.docker.service_name }}" state: restarted when: docker_updated|changed + register: l_docker_restart_docker_in_contiv_result + until: not l_docker_restart_docker_in_contiv_result | failed + retries: 3 + delay: 30 - name: Netplugin | Enable Netplugin service: diff --git a/roles/docker/handlers/main.yml b/roles/docker/handlers/main.yml index 3a4f4ba92..6745f4302 100644 --- a/roles/docker/handlers/main.yml +++ b/roles/docker/handlers/main.yml @@ -6,7 +6,7 @@ state: restarted register: r_docker_restart_docker_result until: not r_docker_restart_docker_result | failed - retries: 1 + retries: 3 delay: 30 when: not docker_service_status_changed | default(false) | bool diff --git a/roles/flannel/handlers/main.yml b/roles/flannel/handlers/main.yml index c60c2115a..02f5a5f64 100644 --- a/roles/flannel/handlers/main.yml +++ b/roles/flannel/handlers/main.yml @@ -8,3 +8,7 @@ systemd: name: "{{ openshift.docker.service_name }}" state: restarted + register: l_docker_restart_docker_in_flannel_result + until: not l_docker_restart_docker_in_flannel_result | failed + retries: 3 + delay: 30 diff --git a/roles/openshift_node_certificates/handlers/main.yml b/roles/openshift_node_certificates/handlers/main.yml index 502f80434..4abe8bcaf 100644 --- a/roles/openshift_node_certificates/handlers/main.yml +++ b/roles/openshift_node_certificates/handlers/main.yml @@ -9,3 +9,7 @@ name: "{{ openshift.docker.service_name }}" state: restarted when: not openshift_certificates_redeploy | default(false) | bool + register: l_docker_restart_docker_in_cert_result + until: not l_docker_restart_docker_in_cert_result | failed + retries: 3 + delay: 30 diff --git a/roles/openshift_node_upgrade/tasks/restart.yml b/roles/openshift_node_upgrade/tasks/restart.yml index 6947223af..f228b6e08 100644 --- a/roles/openshift_node_upgrade/tasks/restart.yml +++ b/roles/openshift_node_upgrade/tasks/restart.yml @@ -19,7 +19,7 @@ state: started register: docker_start_result until: not docker_start_result | failed - retries: 1 + retries: 3 delay: 30 - name: Update docker facts |