From 25fd1cd150b10b7362e3dfa2bfe714077bcd99cc Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Thu, 28 Jan 2016 14:23:29 +0100 Subject: Give openvswitch container some time to start It's possible that openshift containers are started sooner than openvswitch starts/sets networking (this typically happens when docker service is restarted). --- roles/openshift_node/templates/openvswitch.docker.service | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/openshift_node/templates') diff --git a/roles/openshift_node/templates/openvswitch.docker.service b/roles/openshift_node/templates/openvswitch.docker.service index 0b42ca6d5..6c02b26bf 100644 --- a/roles/openshift_node/templates/openvswitch.docker.service +++ b/roles/openshift_node/templates/openvswitch.docker.service @@ -6,6 +6,7 @@ PartOf=docker.service [Service] ExecStartPre=-/usr/bin/docker rm -f openvswitch ExecStart=/usr/bin/docker run --name openvswitch --rm --privileged --net=host --pid=host -v /lib/modules:/lib/modules -v /run:/run -v /sys:/sys:ro -v /etc/origin/openvswitch:/etc/openvswitch {{ openshift.node.ovs_image }} +ExecStartPost=/usr/bin/sleep 5 ExecStop=/usr/bin/docker stop openvswitch Restart=always -- cgit v1.2.3