mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

- OVSDB: * Changed format in which ovsdb transactions are stored in database files. Now each transaction contains diff of data instead of the whole new value of a column. New ovsdb-server process will be able to read old database format, but old processes will *fail* to read database created by the new one. For cluster and active-backup service models follow upgrade instructions in 'Upgrading from version 2.14 and earlier to 2.15 and later' section of ovsdb(7). * New unixctl command 'ovsdb-server/get-db-storage-status' to show the status of the storage that's backing a database. * New unixctl command 'ovsdb-server/memory-trim-on-compaction on|off'. If turned on, ovsdb-server will try to reclaim all the unused memory after every DB compaction back to OS. Disabled by default. * Maximum backlog on RAFT connections limited to 500 messages or 4GB. Once threshold reached, connection is dropped (and re-established). Use the 'cluster/set-backlog-threshold' command to change limits. - DPDK: * Removed support for vhost-user dequeue zero-copy. * Add support for DPDK 20.11. - Userspace datapath: * Add the 'pmd' option to "ovs-appctl dpctl/dump-flows", which restricts a flow dump to a single PMD thread if set. * New 'options:dpdk-vf-mac' field for DPDK interface of VF ports, that allows configuring the MAC address of a VF representor. * Add generic IP protocol support to conntrack. With this change, all none UDP, TCP, and ICMP traffic will be treated as general L3 traffic, i.e. using 3 tupples. * Add parameters 'pmd-auto-lb-load-threshold' and 'pmd-auto-lb-improvement-threshold' to configure PMD auto load balance behaviour. - The environment variable OVS_UNBOUND_CONF, if set, is now used as the DNS resolver's (unbound) configuration file. - Linux datapath: * Support for kernel versions up to 5.8.x. - Terminology: * The terms "master" and "slave" have been replaced by "primary" and "secondary", respectively, for OpenFlow connection roles. * The term "slave" has been replaced by "member", for bonds, LACP, and OpenFlow bundle actions. - Support for GitHub Actions based continuous integration builds has been added. - Bareudp Tunnel * Bareudp device support is present in linux kernel from version 5.7 * Kernel bareudp device is not backported to ovs tree. * Userspace datapath support is not added - ovs-dpctl and 'ovs-appctl dpctl/': * New commands '{add,mod,del}-flows' where added, which allow adding, deleting, or modifying flows based on information read from a file. - IPsec: * Add option '--no-cleanup' to allow ovs-monitor-ipsec to stop without tearing down IPsec tunnels. * Add option '--no-restart-ike-daemon' to allow ovs-monitor-ipsec to start without restarting ipsec daemon. - Building the Linux kernel module from the OVS source tree is deprecated * Support for the Linux kernel is capped at version 5.8 * Only bug fixes for the Linux OOT kernel module will be accepted. * The Linux kernel module will be fully removed from the OVS source tree in OVS branch 2.18 fix some do_patch error about local patch. Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
107 lines
4.7 KiB
Diff
107 lines
4.7 KiB
Diff
From ae55fa8168b4b9692ad757c54255a89f935c587e Mon Sep 17 00:00:00 2001
|
|
From: Chen Qi <Qi.Chen@windriver.com>
|
|
Date: Thu, 11 Mar 2021 11:35:24 +0800
|
|
Subject: [PATCH] ovs: use /run instead of /var/run for in systemd units
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
|
---
|
|
rhel/etc_logrotate.d_openvswitch | 4 ++--
|
|
rhel/usr_lib_systemd_system_openvswitch-ipsec.service | 2 +-
|
|
...sr_lib_systemd_system_ovs-delete-transient-ports.service | 2 +-
|
|
rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 6 +++---
|
|
rhel/usr_lib_systemd_system_ovsdb-server.service | 6 +++---
|
|
5 files changed, 10 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/rhel/etc_logrotate.d_openvswitch b/rhel/etc_logrotate.d_openvswitch
|
|
index f4302ffbc..c0f476744 100644
|
|
--- a/rhel/etc_logrotate.d_openvswitch
|
|
+++ b/rhel/etc_logrotate.d_openvswitch
|
|
@@ -13,8 +13,8 @@
|
|
missingok
|
|
postrotate
|
|
# Tell Open vSwitch daemons to reopen their log files
|
|
- if [ -d /var/run/openvswitch ]; then
|
|
- for ctl in /var/run/openvswitch/*.ctl; do
|
|
+ if [ -d /run/openvswitch ]; then
|
|
+ for ctl in /run/openvswitch/*.ctl; do
|
|
ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
|
|
done
|
|
fi
|
|
diff --git a/rhel/usr_lib_systemd_system_openvswitch-ipsec.service b/rhel/usr_lib_systemd_system_openvswitch-ipsec.service
|
|
index d8f47af68..92dad44f9 100644
|
|
--- a/rhel/usr_lib_systemd_system_openvswitch-ipsec.service
|
|
+++ b/rhel/usr_lib_systemd_system_openvswitch-ipsec.service
|
|
@@ -5,7 +5,7 @@ After=openvswitch.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
-PIDFile=/var/run/openvswitch/ovs-monitor-ipsec.pid
|
|
+PIDFile=/run/openvswitch/ovs-monitor-ipsec.pid
|
|
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
|
|
--ike-daemon=libreswan start-ovs-ipsec
|
|
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop-ovs-ipsec
|
|
diff --git a/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service b/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service
|
|
index 4cd4d7f57..d4d7b204b 100644
|
|
--- a/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service
|
|
+++ b/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service
|
|
@@ -2,7 +2,7 @@
|
|
Description=Open vSwitch Delete Transient Ports
|
|
After=ovsdb-server.service
|
|
Before=ovs-vswitchd.service
|
|
-AssertPathExists=/var/run/openvswitch/db.sock
|
|
+AssertPathExists=/run/openvswitch/db.sock
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
|
|
index f88b57cae..82748bf2d 100644
|
|
--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
|
|
+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
|
|
@@ -4,14 +4,14 @@ After=ovsdb-server.service network-pre.target systemd-udev-settle.service
|
|
Before=network.target network.service
|
|
Requires=ovsdb-server.service
|
|
ReloadPropagatedFrom=ovsdb-server.service
|
|
-AssertPathIsReadWrite=/var/run/openvswitch/db.sock
|
|
+AssertPathIsReadWrite=/run/openvswitch/db.sock
|
|
PartOf=openvswitch.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
-PIDFile=/var/run/openvswitch/ovs-vswitchd.pid
|
|
+PIDFile=/run/openvswitch/ovs-vswitchd.pid
|
|
Restart=on-failure
|
|
-Environment=XDG_RUNTIME_DIR=/var/run/openvswitch
|
|
+Environment=XDG_RUNTIME_DIR=/run/openvswitch
|
|
EnvironmentFile=/etc/openvswitch/default.conf
|
|
EnvironmentFile=-/etc/sysconfig/openvswitch
|
|
EnvironmentFile=-/run/openvswitch.useropts
|
|
diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service
|
|
index 74e5acb7f..39698f238 100644
|
|
--- a/rhel/usr_lib_systemd_system_ovsdb-server.service
|
|
+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service
|
|
@@ -7,7 +7,7 @@ PartOf=openvswitch.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
-PIDFile=/var/run/openvswitch/ovsdb-server.pid
|
|
+PIDFile=/run/openvswitch/ovsdb-server.pid
|
|
Restart=on-failure
|
|
EnvironmentFile=/etc/openvswitch/default.conf
|
|
EnvironmentFile=-/etc/sysconfig/openvswitch
|
|
@@ -17,8 +17,8 @@ EnvironmentFile=-/run/openvswitch.useropts
|
|
# remove openvswitch.useropts first to reload a fresh
|
|
# OVS_USER_ID from default.conf or sysconfig.
|
|
ExecStartPre=/bin/rm -f /run/openvswitch.useropts
|
|
-ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
|
|
-ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch
|
|
+ExecStartPre=-/bin/mkdir /run/openvswitch /var/log/openvswitch
|
|
+ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
|
|
ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts'
|
|
ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi'
|
|
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
|
|
--
|
|
2.17.1
|
|
|