domain configuration does not support video model 'virtio'

Bug #2018172 reported by Mathias Gonzalez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

Hi, im recently deployed RDO Yoga / Zed above Rhel9.1 and i have an issue when try to deploy a new instances that fail with some virtio driver model:

nova-conductor.log>

2023-04-29 22:01:09.506 1931 ERROR nova.scheduler.utils [None req-ebe96b55-f5a0-43a2-b345-3626e48f4ae5 818e3950dde944668dfb8956b3052d80 029a62223a4948a0894f2538ae57a098 - - default default] [instance: 1f2daaae-27dc-4cd9-b2fb-2c18e2fb6d42] Error from last host: ospcloudmh-compute-2.local.lan (node ospcloudmh-compute-2.local.lan): ['Traceback (most recent call last):\n', ' File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 2517, in _build_and_run_instance\n self.driver.spawn(context, instance, image_meta,\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 4366, in spawn\n self._create_guest_with_network(\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 7724, in _create_guest_with_network\n self._cleanup(\n', ' File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__\n self.force_reraise()\n', ' File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise\n raise self.value\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 7701, in _create_guest_with_network\n guest = self._create_guest(\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 7635, in _create_guest\n guest = libvirt_guest.Guest.create(xml, self._host)\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/guest.py", line 154, in create\n LOG.error(\'Error defining a guest with XML: %s\',\n', ' File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__\n self.force_reraise()\n', ' File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise\n raise self.value\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/guest.py", line 151, in create\n guest = host.write_instance_config(xml)\n', ' File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/host.py", line 1228, in write_instance_config\n domain = self.get_connection().defineXML(xml)\n', ' File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 193, in doit\n result = proxy_call(self._autowrap, f, *args, **kwargs)\n', ' File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 151, in proxy_call\n rv = execute(f, *args, **kwargs)\n', ' File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 132, in execute\n six.reraise(c, e, tb)\n', ' File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise\n raise value\n', ' File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 86, in tworker\n rv = meth(*args, **kwargs)\n', ' File "/usr/lib64/python3.9/site-packages/libvirt.py", line 4456, in defineXML\n raise libvirtError(\'virDomainDefineXML() failed\')\n', "libvirt.libvirtError: unsupported configuration: domain configuration does not support video model 'virtio'\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 2340, in _do_build_and_run_instance\n self._build_and_run_instance(context, instance, image,\n', ' File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 2613, in _build_and_run_instance\n raise exception.RescheduledException(\n', "nova.exception.RescheduledException:

Build of instance 1f2daaae-27dc-4cd9-b2fb-2c18e2fb6d42 was re-scheduled: unsupported configuration: domain configuration does not support video model 'virtio'

i found this issue: https://bugs.launchpad.net/nova/+bug/1999803 that recommend to install this dependencies:

qemu-kvm-ui-opengl
qemu-kvm-device-display-virtio-gpu
qemu-kvm-device-display-virtio-gpu-gl
qemu-kvm-device-display-virtio-gpu-pci
qemu-kvm-device-display-virtio-gpu-pci-gl
qemu-kvm-device-display-virtio-vga
qemu-kvm-device-display-virtio-vga-gl
qemu-kvm-device-usb-host
qemu-kvm-device-usb-redirect

But after install i cant deploy new instances and the error still.

Thanks

description: updated
description: updated
description: updated
Revision history for this message
sean mooney (sean-k-mooney) wrote :

https://libvirt.org/formatdomain.html#video-devices

as noted in the libvirt docs virtio was added in libvirt 1.3.0

The model element has a mandatory type attribute which takes the value "vga", "cirrus", "vmvga", "xen", "vbox", "qxl" ( since 0.8.6 ), "virtio" ( since 1.3.0 ), "gop" ( since 3.2.0 ), "bochs" ( since 5.6.0 ), "ramfb" ( since 5.9.0 ), or "none" ( since 4.6.0 ), depending on the hypervisor features available.

this has been supported for years we merely made it our default in nova.

OSP (redhats downstream distribution fo OpenStack) is not supported on rhel 9.1 in any capacity.

there is also no released package of Yoga / Zed as part of osp.

the most recent OSP release is based on wallaby based on rhel 9.0 and the upcoming 17.1
release will be wallaby on rhel 9.2

did you mean RDO? not OSP?

Changed in nova:
status: New → Incomplete
Revision history for this message
Mathias Gonzalez (mathgonzlez) wrote :

sorry, as you say im trying to install RDO in rhel 9.1 with packages installation, because osp (redhat) is based on tripleo.

description: updated
Revision history for this message
Mathias Gonzalez (mathgonzlez) wrote :

hi,

have some update about this issue?

Revision history for this message
Mathias Gonzalez (mathgonzlez) wrote (last edit ):

I try to downgrade the release of rdo openstack to xena with rhel8.7 because xena / yoga /zed dont work with rhel9. So, freshly install rhel8 and xena now get this error:

warning: 'cirrus-vga' is deprecated, please use a different VGA card instead

I dont know why but every freshly deployment of RDO dont work anymore, the docs are not updated from 2020 so its imposible to know what version its needed to install for get openstack work like in past (im installing and testing from queens). So, the 3/4 latest releases are very unstables and not usable at all using centos-stream / rhel based S.o and packages.

UPDATE:
Changes to be made in XENA / rhel8.7 for work:

/usr/lib/python3.6/site-packages/nova/virt/libvirt/config.py
CHANGE FROM
   2054 def __init__(self, **kwargs):
   2055 super(LibvirtConfigGuestVideo, self).__init__(root_name="video",
   2056 **kwargs)
   2057
   2058 self.type = 'cirrus'

TO
   2054 def __init__(self, **kwargs):
   2055 super(LibvirtConfigGuestVideo, self).__init__(root_name="video",
   2056 **kwargs)
   2057
   2058 self.type = 'virtio'

with this changes nova is working now in rhel8.7

Revision history for this message
Fred S (fsbiz) wrote :

Hitting same issue with Rocky 9 and Antelope. Whew!!!!

Jun 11 19:04:05 dev-ipp1-u1-nova01 nova-compute[102745]: 2023-06-11 19:04:05.611 102745 ERROR nova.compute.manager [instance: 092eb563-a22f-44f0-aa8b-14d89291f4f1] rv = meth(*args, **kwargs)
Jun 11 19:04:05 dev-ipp1-u1-nova01 nova-compute[102745]: 2023-06-11 19:04:05.611 102745 ERROR nova.compute.manager [instance: 092eb563-a22f-44f0-aa8b-14d89291f4f1] File "/usr/lib64/python3.9/site-packages/libvirt.py", line 4495, in defineXML
Jun 11 19:04:05 dev-ipp1-u1-nova01 nova-compute[102745]: 2023-06-11 19:04:05.611 102745 ERROR nova.compute.manager [instance: 092eb563-a22f-44f0-aa8b-14d89291f4f1] raise libvirtError('virDomainDefineXML() failed')
Jun 11 19:04:05 dev-ipp1-u1-nova01 nova-compute[102745]: 2023-06-11 19:04:05.611 102745 ERROR nova.compute.manager [instance: 092eb563-a22f-44f0-aa8b-14d89291f4f1] libvirt.libvirtError: unsupported configuration: domain configuration does not support video model 'virtio'

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.