During testing it was found that systemd would consider the openvswitch service as a part of networking component, but the dependent services of ovs-vswitchd and ovsdb-server were not likewise considered. This leads to some strange race conditions, observed when using NFS over TCP, while shutting down systems.
Fixes: 84ad12083491 ("rhel: Improved Systemd Integration") Co-authored-by: Flavio Leitner <f...@redhat.com> Signed-off-by: Aaron Conole <acon...@redhat.com> --- rhel/usr_lib_systemd_system_openvswitch.service | 2 ++ rhel/usr_lib_systemd_system_ovs-vswitchd.service | 3 ++- rhel/usr_lib_systemd_system_ovsdb-server.service | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rhel/usr_lib_systemd_system_openvswitch.service b/rhel/usr_lib_systemd_system_openvswitch.service index a44574b..e823c54 100644 --- a/rhel/usr_lib_systemd_system_openvswitch.service +++ b/rhel/usr_lib_systemd_system_openvswitch.service @@ -1,5 +1,7 @@ [Unit] Description=Open vSwitch +Before=network.target network.service +After=network-pre.target PartOf=network.target BindsTo=ovsdb-server.service BindsTo=ovs-vswitchd.service diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service b/rhel/usr_lib_systemd_system_ovs-vswitchd.service index d3d020a..01d9cee 100644 --- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service +++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service @@ -1,6 +1,7 @@ [Unit] Description=Open vSwitch Forwarding Unit -After=ovsdb-server.service +After=ovsdb-server.service network-pre.target +Before=network.target network.service Requires=ovsdb-server.service ReloadPropagatedFrom=ovsdb-server.service AssertPathIsReadWrite=/var/run/openvswitch/db.sock diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service index 46e3e08..d3d7408 100644 --- a/rhel/usr_lib_systemd_system_ovsdb-server.service +++ b/rhel/usr_lib_systemd_system_ovsdb-server.service @@ -1,6 +1,7 @@ [Unit] Description=Open vSwitch Database Unit -After=syslog.target +After=syslog.target network-pre.target +Before=network.target network.service ReloadPropagatedFrom=openvswitch.service PartOf=openvswitch.service -- 2.7.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev