From 270bb6748152824754d34b9f83bed1f4fbf98a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Mon, 6 Apr 2020 17:21:01 +0200 Subject: [PATCH] OpenStack: disable tx checksum offload for workers This patch adds the workaround suggested on [1] to make nodeport work, instead of ethtool we use NM to apply the fix for each connction before it is up. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1794714 Brings the following ovirt fixes to openstack platform: - https://github.com/openshift/machine-config-operator/pull/1606 - https://github.com/openshift/machine-config-operator/pull/1621 --- .../files/openstack-disable-tx-checksum-offload.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 templates/worker/00-worker/openstack/files/openstack-disable-tx-checksum-offload.yaml diff --git a/templates/worker/00-worker/openstack/files/openstack-disable-tx-checksum-offload.yaml b/templates/worker/00-worker/openstack/files/openstack-disable-tx-checksum-offload.yaml new file mode 100644 index 0000000000..dac73629aa --- /dev/null +++ b/templates/worker/00-worker/openstack/files/openstack-disable-tx-checksum-offload.yaml @@ -0,0 +1,10 @@ +filesystem: "root" +mode: 0744 +path: "/etc/NetworkManager/dispatcher.d/pre-up.d/disable-tx-checksum-offload.sh" +contents: + inline: | + #!/bin/bash + # This is a workaround for BZ#1794714 + if [[ ! -e /var/lib/cni/bin/ovn-k8s-cni-overlay ]]; then + nmcli con modify ${CONNECTION_UUID} ethtool.feature-tx-checksum-ip-generic off; + fi