[pve-devel] [PATCH ifupdown2] add patch to ifup/ifdown allow=ovs on start/stop

Alexandre Derumier aderumier at odiso.com
Thu Feb 13 07:30:31 CET 2020


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 at odiso.com>
---
 ...ce-ifup-ifdown-allow-ovs-on-start-st.patch | 26 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 debian/patches/pve/0009-networking.service-ifup-ifdown-allow-ovs-on-start-st.patch

diff --git a/debian/patches/pve/0009-networking.service-ifup-ifdown-allow-ovs-on-start-st.patch b/debian/patches/pve/0009-networking.service-ifup-ifdown-allow-ovs-on-start-st.patch
new file mode 100644
index 0000000..0d7b6fa
--- /dev/null
+++ b/debian/patches/pve/0009-networking.service-ifup-ifdown-allow-ovs-on-start-st.patch
@@ -0,0 +1,26 @@
+From aaf288fd97929140348d2de6751c4ca758997455 Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier at 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 at 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
+
diff --git a/debian/patches/series b/debian/patches/series
index 6f81e1f..0f3c1fa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,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
-- 
2.20.1




More information about the pve-devel mailing list