From 1e14fa3a24fa64b84cc993c985e696a9cba78dea Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 27 May 2021 10:35:52 +0200 Subject: [PATCH] CI: Fix libvirt errors caused by latest edk2-ovmf Some CentOS Stream CI jobs started to fail when defining VMs with: libvirt.libvirtError: internal error: unknown feature amd-sev-es This was introduced by edk2-ovmf-20200602gitca407c7246bf-5.el8.noarch. This change excludes this package version in Zuul jobs, which fixes the kayobe-seed-vm-centos8s job. Overcloud centos8s jobs were also broken by the nova-libvirt Kolla image containing this package, which is used by Tenks. Updated images using the previous version of edk2-ovmf [1][2] are now available from quay.io. This also needs to be fixed for Kayobe and Tenks in general, unless a new package is released soon. [1] https://review.opendev.org/c/openstack/kolla/+/792999 [2] https://review.opendev.org/c/openstack/kolla/+/793174 Change-Id: I5bc8197143ce763cdaf8a9ac0b782b524d5df258 --- playbooks/kayobe-seed-vm-base/pre.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playbooks/kayobe-seed-vm-base/pre.yml b/playbooks/kayobe-seed-vm-base/pre.yml index 8a369a6b7..5fd37810f 100644 --- a/playbooks/kayobe-seed-vm-base/pre.yml +++ b/playbooks/kayobe-seed-vm-base/pre.yml @@ -55,3 +55,12 @@ cmd: dev/install.sh &> {{ logs_dir }}/ansible/install chdir: "{{ kayobe_src_dir }}" executable: /bin/bash + + # TODO(priteau): Remove when edk2-ovmf bug is resolved upstream + # https://bugzilla.redhat.com/show_bug.cgi?id=1961562 + - name: Exclude buggy edk2-ovmf package version + lineinfile: + path: /etc/yum.repos.d/CentOS-Stream-AppStream.repo + line: exclude=edk2-ovmf-20200602gitca407c7246bf-5.el8 + become: true + when: ansible_os_family == 'RedHat'