Merge "Change the machine type to q35 to support UEFI on CentOS"

This commit is contained in:
Zuul 2020-11-03 11:37:20 +00:00 committed by Gerrit Code Review
commit 1f35de23d5
5 changed files with 17 additions and 5 deletions

View File

@ -34,7 +34,7 @@ test_vm_storage_pool_path: "/var/lib/libvirt/images"
test_vm_logdir: "/var/log/libvirt/baremetal_logs"
# NOTE(pas-ha) next two are generic values for most OSes, overridden by distro-specifc vars
test_vm_emulator: "/usr/bin/qemu-system-x86_64"
test_vm_machine: "pc"
test_vm_machine: "q35"
# NOTE(pas-ha) not really tested with non-local qemu connections
test_vm_libvirt_uri: "{{ lookup('env', 'LIBVIRT_CONNECT_URI') | default('qemu:///system', true) }}"
# Settings related to installing bifrost in a virtual environment

View File

@ -212,12 +212,17 @@
become: true
register: redfish_emulator_service_file
# NOTE(dtantsur): secure boot capable firmware goes second because some systems
# (e.g. Ubuntu) provide it but refuse to boot. However, CentOS provides only
# secure boot capable firmware, and it works for both secure und normal boot.
- name: find OVMF firmware
set_fact:
efi_loader_path: "{{ item }}"
with_first_found:
- /usr/share/edk2/ovmf/OVMF_CODE.fd
- /usr/share/edk2/ovmf/OVMF_CODE.secboot.fd
- /usr/share/OVMF/OVMF_CODE.fd
- /usr/share/OVMF/OVMF_CODE.secboot.fd
- /usr/share/qemu/ovmf-x86_64-code.bin
ignore_errors: true
when: efi_loader_path is undefined

View File

@ -5,7 +5,5 @@ features:
environment. Pass ``default_boot_mode=uefi`` to enable.
issues:
- |
UEFI testing does not work on CentOS/RHEL 8 because of the limitations of
the provided OVMF firmware.
- |
UEFI testing does not work on Ubuntu Focal because of TFTP issues.
UEFI testing with network boot does not work on Ubuntu Focal because of
TFTP issues.

View File

@ -141,6 +141,14 @@
test_driver: redfish
enable_prometheus_exporter: true
- job:
name: bifrost-integration-redfish-vmedia-uefi-centos-8
parent: bifrost-integration-tinyipa-centos-8
vars:
boot_mode: uefi
test_driver: redfish
use_vmedia: true
- job:
name: bifrost-integration-tinyipa-debian-buster
parent: bifrost-integration-tinyipa

View File

@ -13,6 +13,7 @@
- bifrost-integration-tinyipa-keystone-ubuntu-focal
- bifrost-integration-tinyipa-keystone-centos-8
- bifrost-integration-redfish-vmedia-uefi-ubuntu-focal
- bifrost-integration-redfish-vmedia-uefi-centos-8
# Non-voting jobs
- bifrost-integration-tinyipa-ubuntu-bionic:
voting: false