From b37182fcc8fe46b538ea6d8bb1ac1a64d66b0788 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 27 May 2019 07:37:44 +0200 Subject: [PATCH] copr: provision - install ethtool again This one is fedora-copr-only hack, and as such the ethtool package isn't supposed to be put as Requires: into copr-builder. To not C&P between x86_64/ppc64le playbooks, put the ethtool hack into separate tasks file. --- roles/copr/backend/files/provision/builderpb_nova.yml | 3 +-- .../backend/files/provision/builderpb_nova_ppc64le.yml | 3 +-- roles/copr/backend/files/provision/offloading_hack.yml | 9 +++++++++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 roles/copr/backend/files/provision/offloading_hack.yml diff --git a/roles/copr/backend/files/provision/builderpb_nova.yml b/roles/copr/backend/files/provision/builderpb_nova.yml index 1b5d18abb4..dcb76a97e4 100644 --- a/roles/copr/backend/files/provision/builderpb_nova.yml +++ b/roles/copr/backend/files/provision/builderpb_nova.yml @@ -50,5 +50,4 @@ tasks: - include: "provision_builder_tasks.yml" - - name: disable offloading - command: ethtool -K eth0 tso off gro off gso off + - include: "offloading_hack.yml" diff --git a/roles/copr/backend/files/provision/builderpb_nova_ppc64le.yml b/roles/copr/backend/files/provision/builderpb_nova_ppc64le.yml index 104155a3bb..dffe9d80f5 100644 --- a/roles/copr/backend/files/provision/builderpb_nova_ppc64le.yml +++ b/roles/copr/backend/files/provision/builderpb_nova_ppc64le.yml @@ -50,5 +50,4 @@ tasks: - include: "provision_builder_tasks.yml" - - name: disable offloading - command: ethtool -K eth0 tso off gro off gso off + - include: "offloading_hack.yml" diff --git a/roles/copr/backend/files/provision/offloading_hack.yml b/roles/copr/backend/files/provision/offloading_hack.yml new file mode 100644 index 0000000000..c8c50e40f1 --- /dev/null +++ b/roles/copr/backend/files/provision/offloading_hack.yml @@ -0,0 +1,9 @@ +# TODO: is this still needed? +# https://bugzilla.redhat.com/show_bug.cgi?id=1268192 + +- name: install ethtool + package: state=present name=ethtool + when: prepare_base_image + +- name: disable offloading + command: ethtool -K eth0 tso off gro off gso off