-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disables udp offload on redhat for vwmare #2306
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...kubernetes-sigs/image-builder/patches/0001-Add-goss-validations-for-EKS-D-artifacts.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0002-Output-vsphere-builds-to-content-library-instead-of-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0003-Create-etc-pki-tls-certs-dir-as-part-of-image-builds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0004-Add-etcdadm-and-etcd.tar.gz-to-image-for-unstacked-e.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...bernetes-sigs/image-builder/patches/0005-Additional-EKS-A-specific-goss-validations.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
projects/kubernetes-sigs/image-builder/patches/0006-Tweak-Product-info-in-OVF.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...netes-sigs/image-builder/patches/0007-Support-crictl-validation-from-input-checksum.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...etes-sigs/image-builder/patches/0008-Exclude-kernel-and-cloud-init-from-yum-updates.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0009-Patch-cloud-init-systemd-unit-to-wait-for-network-ma.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...etes-sigs/image-builder/patches/0010-Add-instance-metadata-options-to-Packer-config.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0011-Rename-Snow-node-image-to-reflect-appropriate-CAPI-p.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0012-Add-EKS-A-specific-inline-Goss-vars-to-all-supported.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rnetes-sigs/image-builder/patches/0013-Use-tar.gz-extension-for-CNI-plugins-tarball.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
projects/kubernetes-sigs/image-builder/patches/0014-uses-latest-ubuntu-22.04-iso.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
projects/kubernetes-sigs/image-builder/patches/0015-Shrink-qemu-ubuntu-image-size.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...kubernetes-sigs/image-builder/patches/0016-adds-support-for-raw-ubuntu-22.04-builds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igs/image-builder/patches/0017-sets-OS_VERSION-for-goss-validation-on-raw-image-bui.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...netes-sigs/image-builder/patches/0018-adds-disable-udp-service-for-redhat-on-vmware.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
From 0e16d0d44f1e5ab2041f6e6fb6a9cecc15b601c4 Mon Sep 17 00:00:00 2001 | ||
From: Prow Bot <jgw@amazon.com> | ||
Date: Mon, 10 Jul 2023 14:34:01 -0500 | ||
Subject: [PATCH 18/18] adds disable udp service for redhat on vmware | ||
|
||
--- | ||
.../systemd/system/disable-udp-offload.service | 15 +++++++++++++++ | ||
.../roles/providers/tasks/vmware-redhat.yml | 18 ++++++++++++++++++ | ||
2 files changed, 33 insertions(+) | ||
create mode 100644 images/capi/ansible/roles/providers/files/etc/systemd/system/disable-udp-offload.service | ||
|
||
diff --git a/images/capi/ansible/roles/providers/files/etc/systemd/system/disable-udp-offload.service b/images/capi/ansible/roles/providers/files/etc/systemd/system/disable-udp-offload.service | ||
new file mode 100644 | ||
index 000000000..247a42c56 | ||
--- /dev/null | ||
+++ b/images/capi/ansible/roles/providers/files/etc/systemd/system/disable-udp-offload.service | ||
@@ -0,0 +1,15 @@ | ||
+[Unit] | ||
+Description=Disables UDP offload | ||
+After=NetworkManager-wait-online.service | ||
+# Block manual interactions with this service | ||
+RefuseManualStart=true | ||
+RefuseManualStop=true | ||
+ | ||
+[Service] | ||
+Type=oneshot | ||
+ExecStart=/usr/sbin/ethtool -K eth0 tx-udp_tnl-segmentation off | ||
+ExecStart=/usr/sbin/ethtool -K eth0 tx-udp_tnl-csum-segmentation off | ||
+RemainAfterExit=true | ||
+ | ||
+[Install] | ||
+WantedBy=multi-user.target | ||
diff --git a/images/capi/ansible/roles/providers/tasks/vmware-redhat.yml b/images/capi/ansible/roles/providers/tasks/vmware-redhat.yml | ||
index 0047e90a7..105348b2f 100644 | ||
--- a/images/capi/ansible/roles/providers/tasks/vmware-redhat.yml | ||
+++ b/images/capi/ansible/roles/providers/tasks/vmware-redhat.yml | ||
@@ -49,3 +49,21 @@ | ||
file: | ||
path: /tmp/cloud-init-vmware.sh | ||
state: absent | ||
+ | ||
+- name: Create service disable udp offload | ||
+ copy: | ||
+ src: files/etc/systemd/system/disable-udp-offload.service | ||
+ dest: /etc/systemd/system/disable-udp-offload.service | ||
+ owner: root | ||
+ group: root | ||
+ mode: 0644 | ||
+ when: ansible_os_family != "Flatcar" | ||
+ | ||
+- name: Enable disable-udp-offload.service | ||
+ systemd: | ||
+ name: disable-udp-offload.service | ||
+ daemon_reload: yes | ||
+ enabled: True | ||
+ state: stopped | ||
+ when: ansible_os_family != "Flatcar" | ||
+ | ||
\ No newline at end of file | ||
-- | ||
2.40.1 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 7, and the numbers from 7 to 13 need to be fixed.