summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2016-02-29 14:42:18 -0500
committerMatt Woodson <mwoodson@redhat.com>2016-02-29 14:42:18 -0500
commitfb6729d41ff81c19dd79709ad77aaac11df6c711 (patch)
treeceb3be9d1a0b98ce4a940cafc95d10b433a3f665 /roles
parent8c060c8c612d465a5314e5ac4c57053185351c9e (diff)
downloadopenshift-fb6729d41ff81c19dd79709ad77aaac11df6c711.tar.gz
openshift-fb6729d41ff81c19dd79709ad77aaac11df6c711.tar.bz2
openshift-fb6729d41ff81c19dd79709ad77aaac11df6c711.tar.xz
openshift-fb6729d41ff81c19dd79709ad77aaac11df6c711.zip
added extra steps to ensure docker starts up
Diffstat (limited to 'roles')
-rwxr-xr-xroles/docker_storage_setup/tasks/main.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/roles/docker_storage_setup/tasks/main.yml b/roles/docker_storage_setup/tasks/main.yml
index 1a30ea4cb..8af9bbe1e 100755
--- a/roles/docker_storage_setup/tasks/main.yml
+++ b/roles/docker_storage_setup/tasks/main.yml
@@ -4,7 +4,20 @@
with_items:
- docker
-- name: start docker
+# Docker doesn't seem to start cleanly the first time run
+# when loopback (not directlvm) is configured. Putting in an
+# ignore errors, and then sleeping till it can come up cleanly
+- name: Try to start docker. This might fail (loopback startup issue)
+ service:
+ name: docker
+ state: started
+ ignore_errors: yes
+
+- name: Pause for 1 minute
+ pause:
+ seconds: 30
+
+- name: Ensure docker is started
service:
name: docker
state: started