From 13315e57a71c88e5af946001d3634d3d6e73c8f3 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Sat, 21 Nov 2020 23:27:58 -0600 Subject: [PATCH] Fix openvswitch gate issue with systemd 237-3ubuntu10.43 New systemd 237-3ubuntu10.43 bumps memlock limit from 16 to 64 MB [1] which seems to cause issues with eBPF related operations in containers run with root [2] as a possible root cause. Here we have an option to downgrade systemd to previous available version or to set previous default memlock limit to systemd defaults or docker unit. Setting systemd DefaultLimitMEMLOCK in this commit. [1] https://launchpad.net/ubuntu/+source/systemd/237-3ubuntu10.43 [2] https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1837580/comments/9 Change-Id: I55d14ffa47a7a29d059f2f3b502bb38be0a5dd3d Signed-off-by: Andrii Ostapenko --- tools/deployment/common/005-deploy-k8s.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/deployment/common/005-deploy-k8s.sh b/tools/deployment/common/005-deploy-k8s.sh index 4dddbbba0..14d40b907 100755 --- a/tools/deployment/common/005-deploy-k8s.sh +++ b/tools/deployment/common/005-deploy-k8s.sh @@ -21,6 +21,9 @@ MINIKUBE_AIO_DEFAULT="docker.io/openstackhelm/minikube-aio:latest-ubuntu_bionic" export DEBCONF_NONINTERACTIVE_SEEN=true export DEBIAN_FRONTEND=noninteractive +echo "DefaultLimitMEMLOCK=16384" | sudo tee -a /etc/systemd/system.conf +sudo systemctl daemon-reexec + # Install required packages for K8s on host wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add - RELEASE_NAME=$(grep 'CODENAME' /etc/lsb-release | awk -F= '{print $2}')