summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-08-23 16:45:01 -0400
committerRussell Teague <rteague@redhat.com>2017-08-29 08:14:37 -0400
commitd8191cbd7a66fc2ba8b4d3cafeccc19afca76850 (patch)
treea7a03b9ebcfbe0c0826630af5dee9b28b092b416 /playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml
parentab7b515d8ed8576b23147e64e4da73e6dea41df7 (diff)
downloadopenshift-d8191cbd7a66fc2ba8b4d3cafeccc19afca76850.tar.gz
openshift-d8191cbd7a66fc2ba8b4d3cafeccc19afca76850.tar.bz2
openshift-d8191cbd7a66fc2ba8b4d3cafeccc19afca76850.tar.xz
openshift-d8191cbd7a66fc2ba8b4d3cafeccc19afca76850.zip
Test: Fail on entry point playbooks in common
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml b/playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml
new file mode 100644
index 000000000..83f16ac0d
--- /dev/null
+++ b/playbooks/common/openshift-cluster/upgrades/docker/tasks/restart.yml
@@ -0,0 +1,31 @@
+---
+- name: Restart docker
+ service: name=docker state=restarted
+ register: l_docker_restart_docker_in_upgrade_result
+ until: not l_docker_restart_docker_in_upgrade_result | failed
+ retries: 3
+ delay: 30
+
+- name: Update docker facts
+ openshift_facts:
+ role: docker
+
+- name: Restart containerized services
+ service: name={{ item }} state=started
+ with_items:
+ - etcd_container
+ - openvswitch
+ - "{{ openshift.common.service_type }}-master-api"
+ - "{{ openshift.common.service_type }}-master-controllers"
+ - "{{ openshift.common.service_type }}-node"
+ failed_when: false
+ when: openshift.common.is_containerized | bool
+
+- name: Wait for master API to come back online
+ wait_for:
+ host: "{{ openshift.common.hostname }}"
+ state: started
+ delay: 10
+ port: "{{ openshift.master.api_port }}"
+ timeout: 600
+ when: inventory_hostname in groups.oo_masters_to_config