From 96509ea025459ac077d2c85289da7725c53235cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Wed, 21 Oct 2020 20:33:08 +0200 Subject: [PATCH] Check centos-8-stream CentOS Stream 8 (aka CentOS 8 Stream) is the currently supported runtime platform. [0] Some background history: The Manila team has asked QA to test centos-8-stream in the common gate. A bit later it turned out the point releases of CentOS 8 (aka CentOS Linux 8) will stop happening entirely by the end of 2021. [1] Includes a workaround to the edk2-ovmf issue on CentOS Stream 8 x86_64. [0] https://governance.openstack.org/tc/reference/runtimes/xena.html [1] https://lists.centos.org/pipermail/centos-devel/2020-December/075451.html Change-Id: Iee5a262af757f27f79ba1d6f790e949427dca190 --- .zuul.yaml | 19 +++++++++++++++++++ lib/nova_plugins/functions-libvirt | 12 +++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index 5bc6a8b424..e45ff8febc 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -58,6 +58,16 @@ nodes: - controller +- nodeset: + name: devstack-single-node-centos-8-stream + nodes: + - name: controller + label: centos-8-stream + groups: + - name: tempest + nodes: + - controller + - nodeset: name: devstack-single-node-opensuse-15 nodes: @@ -591,6 +601,14 @@ voting: false timeout: 9000 +- job: + name: devstack-platform-centos-8-stream + parent: tempest-full-py3 + description: CentOS 8 Stream platform test + nodeset: devstack-single-node-centos-8-stream + voting: false + timeout: 9000 + - job: name: devstack-async parent: tempest-full-py3 @@ -704,6 +722,7 @@ - devstack-ipv6 - devstack-platform-fedora-latest - devstack-platform-centos-8 + - devstack-platform-centos-8-stream - devstack-async - devstack-multinode - devstack-unit-tests diff --git a/lib/nova_plugins/functions-libvirt b/lib/nova_plugins/functions-libvirt index d3827c30dd..58adde7cd4 100644 --- a/lib/nova_plugins/functions-libvirt +++ b/lib/nova_plugins/functions-libvirt @@ -81,7 +81,17 @@ function install_libvirt { install_package qemu-kvm install_package libvirt libvirt-devel - if is_arch "aarch64"; then + if is_arch "x86_64"; then + # NOTE(yoctozepto): recent edk2-ovmf on CentOS Stream 8 x86_64 started failing with + # "libvirt.libvirtError: internal error: unknown feature amd-sev-es", + # so reinstall a known working version until the relevant bugs get fixed: + # * https://bugzilla.redhat.com/show_bug.cgi?id=1961558 + # * https://bugzilla.redhat.com/show_bug.cgi?id=1961562 + # TODO(yoctozepto): Remove this code when the time is right. + if [ "$os_VENDOR" = "CentOSStream" ]; then + install_package edk2-ovmf-20200602gitca407c7246bf-4.el8 + fi + elif is_arch "aarch64"; then install_package edk2.git-aarch64 fi