From e1e078350a5657be09c688430ad600a89977775d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 21 May 2021 16:07:09 +0300 Subject: [PATCH] Replace linters test with integarted one We've created integrated linters check job a while back and it's successfully working for several releases. At the moment we experience difficulties with future maintenance of the linters check from the openstack-ansible-tests repo. So instead of fixing current one, we replace it with modern version of the test. Change-Id: Ia1e4677d7e09bd74d57e9b48f606ddc1febf135a --- tasks/drivers/kvm/nova_compute_kvm.yml | 19 +++++++++++++++++++ zuul.d/project.yaml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/tasks/drivers/kvm/nova_compute_kvm.yml b/tasks/drivers/kvm/nova_compute_kvm.yml index 9e87dca9..1b83b0cf 100644 --- a/tasks/drivers/kvm/nova_compute_kvm.yml +++ b/tasks/drivers/kvm/nova_compute_kvm.yml @@ -174,6 +174,25 @@ - nova-kvm - nova-libvirt +# NOTE(noonedeadpunk): Workaround RHEL bug with edk2-ovmf until they got it released upstream +# Issue has been reproduced with edk2-ovmf-20200602gitca407c7246bf-5.el8.noarch.rpm +# https://bugzilla.redhat.com/show_bug.cgi?id=1961562#c16 +- name: Disable new UEFI firmware + when: + - ansible_facts['os_family'] | lower == 'redhat' + - ansible_facts['distribution_version'] is version('8.3', '<') + block: + - name: Create qemu firmware directory + file: + path: /etc/qemu/firmware + state: directory + recurse: true + + - name: Create empty edk2-ovmf config + file: + path: /etc/qemu/firmware/50-edk2-ovmf-cc.json + state: touch + - name: Set qemu-kvm KSM config (Ubuntu) lineinfile: dest: "/etc/default/qemu-kvm" diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 1319534b..d9a9cf24 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -16,7 +16,7 @@ - project: templates: - check-requirements - - openstack-ansible-linters + - openstack-ansible-linters-jobs - openstack-ansible-deploy-aio_metal-jobs - openstack-ansible-deploy-aio_distro_metal-jobs - publish-openstack-docs-pti