Browse code

Merge "libvirt: Support the use of the virt-preview repo when using Fedora"

Zuul authored on 2020/01/29 13:51:39
Showing 1 changed files
... ...
@@ -24,6 +24,10 @@ DEBUG_LIBVIRT=$(trueorfalse True DEBUG_LIBVIRT)
24 24
 # Currently fairly specific to OpenStackCI hosts
25 25
 DEBUG_LIBVIRT_COREDUMPS=$(trueorfalse False DEBUG_LIBVIRT_COREDUMPS)
26 26
 
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
+
27 31
 # Enable coredumps for libvirt
28 32
 #  Bug: https://bugs.launchpad.net/nova/+bug/1643911
29 33
 function _enable_coredump {
... ...
@@ -61,6 +65,12 @@ function install_libvirt {
61 61
         #pip_install_gr <there-si-no-guestfs-in-pypi>
62 62
     elif is_fedora || is_suse; then
63 63
 
64
+        # Optionally enable the virt-preview repo when on Fedora
65
+        if [[ $DISTRO =~ f[0-9][0-9] ]] && [[ ${ENABLE_FEDORA_VIRT_PREVIEW_REPO} == "True" ]]; then
66
+            # https://copr.fedorainfracloud.org/coprs/g/virtmaint-sig/virt-preview/
67
+            sudo dnf copr enable -y @virtmaint-sig/virt-preview
68
+        fi
69
+
64 70
         # Note that in CentOS/RHEL this needs to come from the RDO
65 71
         # repositories (qemu-kvm-ev ... which provides this package)
66 72
         # as the base system version is too old.  We should have