Commit 69d536af authored by Jan Siersch's avatar Jan Siersch
Browse files

moved network fixes to ifup-local

parent 3cb43b8a
......@@ -43,12 +43,6 @@ if $doStop; then
fi
if $doStart; then
# FIX: checksum errors in "/var/log/messages"
ethtool -K eth2 rx off
# FIX: horrible performance when VMs communicate with the outside world
ethtool -K eth0 gro off
for i in ${arr[*]}; do
service "$i" start;
done
......
......@@ -140,6 +140,7 @@ done
chmod "755" $(find "/etc/neutron" -type d)
chmod "640" $(find "/etc/neutron" -type f)
chown -R "root:neutron" "/etc/neutron"
chmod "700" "/sbin/ifup-local"
# prerequisite software
echo "### installing prerequisite software ###"
......@@ -236,6 +237,27 @@ ethtool -K $NETWORKNODE_IF_PBLC gro off
# FIX: checksum errors in "/var/log/messages"
ethtool -K $NETWORKNODE_IF_DATA rx off
# this creates a scripts that will re-apply the network fixes each time the corresponding interface is brought up again
cat > /sbin/ifup-local << EOF
#!/bin/bash
if (( \$# < 1 )); then
exit 1
fi
case "\$1" in
${NETWORKNODE_IF_PBLC})
/sbin/ethtool -K \$1 gro off
;;
${NETWORKNODE_IF_DATA})
/sbin/ethtool -K \$1 rx off
;;
esac
exit 0
EOF
chmod 700 /sbin/ifup-local
# Due to a packaging bug, the Open vSwitch agent initialization script explicitly looks for the Open vSwitch plug-in
# configuration file rather than a symbolic link /etc/neutron/plugin.ini pointing to the ML2 plug-in configuration file.
# Run the following commands to resolve this issue:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment