Browse Source

Merge pull request #1304 from jprovaznik/sleep

Give openvswitch container some time to start
Brenton Leanhardt 9 years ago
parent
commit
051b845545
1 changed files with 1 additions and 0 deletions
  1. 1 0
      roles/openshift_node/templates/openvswitch.docker.service

+ 1 - 0
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