Skip to content

Commit d5c964d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "libvirt: Support the use of the virt-preview repo when using Fedora"
2 parents 761663d + 169f5de commit d5c964d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/nova_plugins/functions-libvirt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ DEBUG_LIBVIRT=$(trueorfalse True DEBUG_LIBVIRT)
2424
# Currently fairly specific to OpenStackCI hosts
2525
DEBUG_LIBVIRT_COREDUMPS=$(trueorfalse False DEBUG_LIBVIRT_COREDUMPS)
2626

27+
# Enable the Fedora Virtualization Preview Copr repo that provides the latest
28+
# rawhide builds of QEMU, Libvirt and other virt tools.
29+
ENABLE_FEDORA_VIRT_PREVIEW_REPO=$(trueorfalse False ENABLE_FEDORA_VIRT_PREVIEW_REPO)
30+
2731
# Enable coredumps for libvirt
2832
# Bug: https://bugs.launchpad.net/nova/+bug/1643911
2933
function _enable_coredump {
@@ -61,6 +65,12 @@ function install_libvirt {
6165
#pip_install_gr <there-si-no-guestfs-in-pypi>
6266
elif is_fedora || is_suse; then
6367

68+
# Optionally enable the virt-preview repo when on Fedora
69+
if [[ $DISTRO =~ f[0-9][0-9] ]] && [[ ${ENABLE_FEDORA_VIRT_PREVIEW_REPO} == "True" ]]; then
70+
# https://copr.fedorainfracloud.org/coprs/g/virtmaint-sig/virt-preview/
71+
sudo dnf copr enable -y @virtmaint-sig/virt-preview
72+
fi
73+
6474
# Note that in CentOS/RHEL this needs to come from the RDO
6575
# repositories (qemu-kvm-ev ... which provides this package)
6676
# as the base system version is too old. We should have

0 commit comments

Comments
 (0)