From fa7eecf9dbd3b916d8784217a36ae4f7b0dc7d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Sat, 7 Oct 2023 16:49:28 +0800 Subject: [PATCH] ovs: load kernel module ip_tables only when it exists (#3281) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张祖建 --- dist/images/start-ovs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/images/start-ovs.sh b/dist/images/start-ovs.sh index b57ee432f22..db9f30de9f9 100755 --- a/dist/images/start-ovs.sh +++ b/dist/images/start-ovs.sh @@ -18,10 +18,11 @@ echo "OVN_REMOTE_OPENFLOW_INTERVAL is set to $OVN_REMOTE_OPENFLOW_INTERVAL" # Check required kernel module modinfo openvswitch modinfo geneve -modinfo ip_tables # CentOS 8 might not load iptables module by default, which will hurt nat function -modprobe ip_tables +if modinfo ip_tables; then + modprobe ip_tables +fi # https://bugs.launchpad.net/neutron/+bug/1776778 if grep -q "3.10.0-862" /proc/version