Skip to content
Browse files

rhel: make openvswitch service start return when ready

In OVS 2.6 openvswitch systemd service was changed to use BindsTo
instead of Requires for sub-services but also removed them from After

This made main openvswitch service return before sub-services were ready
breaking scripts which assumed everything is ready after systemctl start
e.g. in OpenStack CI infra [1] is calling ovs-vsctl immediately after
service start exposing a race in virtualized CI environment:
2017-02-09T23:11:12.498Z|00007|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.6.1
but ovs-ctl tried to access it few msec too early:
2017-02-09 23:11:12.352493 | ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)

Solution is to add ordering dependencies, BindsTo/Requires do not ensure it [2]



Fixes: 84ad120 ("rhel: Improved Systemd Integration")
Signed-off-by: Alan Pevec <>
Acked-by: Aaron Conole <>
Signed-off-by: Russell Bryant <>
  • Loading branch information...
apevec authored and russellb committed Feb 11, 2017
1 parent e6932e5 commit 273cc28d8d1bf597c97450223ec17bbd444c0b37
Showing with 2 additions and 1 deletion.
  1. +1 −0 AUTHORS.rst
  2. +1 −1 rhel/usr_lib_systemd_system_openvswitch.service
@@ -33,6 +33,7 @@ Name Email
=============================== ===============================================
Aaron Conole
Aaron Rosen
Alan Pevec
Alexander Duyck
Alexandru Copot
Alexei Starovoitov
@@ -1,7 +1,7 @@
Description=Open vSwitch network.service ovsdb-server.service ovs-vswitchd.service

0 comments on commit 273cc28

Please sign in to comment.
You can’t perform that action at this time.