diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index 0cd24aa7d0..2c8049ac05 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -601,17 +601,25 @@ class LibvirtDriver(driver.ComputeDriver): host arch configurations in order to indicate potential issues to administrators. """ + if CONF.libvirt.virt_type not in ('qemu', 'kvm'): + LOG.warning( + "Support for the '%(type)s' libvirt backend has been " + "deprecated and will be removed in a future release.", + {'type': CONF.libvirt.virt_type}, + ) + caps = self._host.get_capabilities() hostarch = caps.host.cpu.arch - if (CONF.libvirt.virt_type not in ('qemu', 'kvm') or - hostarch not in (fields.Architecture.I686, - fields.Architecture.X86_64)): - LOG.warning('The libvirt driver is not tested on ' - '%(type)s/%(arch)s by the OpenStack project and ' - 'thus its quality can not be ensured. For more ' - 'information, see: https://docs.openstack.org/' - 'nova/latest/user/support-matrix.html', - {'type': CONF.libvirt.virt_type, 'arch': hostarch}) + if hostarch not in ( + fields.Architecture.I686, fields.Architecture.X86_64, + ): + LOG.warning( + 'The libvirt driver is not tested on %(arch)s by the ' + 'OpenStack project and thus its quality can not be ensured. ' + 'For more information, see: https://docs.openstack.org/' + 'nova/latest/user/support-matrix.html', + {'arch': hostarch}, + ) if CONF.vnc.keymap: LOG.warning('The option "[vnc] keymap" has been deprecated ' diff --git a/releasenotes/notes/deprecate-libvirt-backends-496446b8b8b225e9.yaml b/releasenotes/notes/deprecate-libvirt-backends-496446b8b8b225e9.yaml new file mode 100644 index 0000000000..60156271c8 --- /dev/null +++ b/releasenotes/notes/deprecate-libvirt-backends-496446b8b8b225e9.yaml @@ -0,0 +1,9 @@ +--- +deprecations: + - | + Support for the ``xen``, ``uml``, ``lxc`` and ``parallels`` libvirt + backends, configured via the ``[libvirt] virt_type`` config option, has + been deprecated. None of these drivers have upstream testing and the + ``xen`` and ``uml`` backends specifically have never been considered + production ready. With this change, only the ``kvm`` and ``qemu`` backends + are considered supported when using the libvirt virt driver.