add patch to ifup/ifdown allow=ovs on start/stop

This is fixing possible race condition with ovs 2.12

ans also cleanly remove ovs interfaces on networking service stop

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2020-02-13 07:30:31 +01:00 committed by Thomas Lamprecht
parent 4f25fa796f
commit 1aeb7eb223
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From aaf288fd97929140348d2de6751c4ca758997455 Mon Sep 17 00:00:00 2001
From: Alexandre Derumier <aderumier@odiso.com>
Date: Thu, 13 Feb 2020 07:16:33 +0100
Subject: [PATCH] networking.service: ifup/ifdown allow=ovs on start/stop
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
debian/ifupdown2.networking.service | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/ifupdown2.networking.service b/debian/ifupdown2.networking.service
index b2acd97..4347bd2 100644
--- a/debian/ifupdown2.networking.service
+++ b/debian/ifupdown2.networking.service
@@ -11,6 +11,8 @@ RemainAfterExit=yes
SyslogIdentifier=networking
TimeoutStopSec=30s
ExecStart=/sbin/ifup -a
+ExecStart=/sbin/ifup --allow=ovs
+ExecStop=/sbin/ifdown --allow=ovs
ExecStop=/sbin/ifdown -a
ExecReload=/sbin/ifreload -a
--
2.20.1

View File

@ -8,3 +8,4 @@ pve/0005-ifreload-down-up-vxlan-interfaces-when-ifreload_down.patch
pve/0006-config-tuning.patch
pve/0007-networking.service-fix-dependencies-and-ordering.patch
pve/0008-execute-addons-scripts-before-modules.patch
pve/0009-networking.service-ifup-ifdown-allow-ovs-on-start-st.patch