Nova Instance Creation Fails with Error: USB is diabled for this domain

Bug #1962381 reported by Evan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
OpenStack Nova Compute Charm
Fix Committed
High
Felipe Reyes

Bug Description

My instances fail to create and I get the following error in /var/log/nova-compute.log on the compute nodes and /var/log/nova-conductor.log on the controller nodeabout USB being disabled for a domain but devices being present in the domain.xml.

2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [req-b7f8ef2c-f89a-4380-b573-bba4b99aa296 d20aa0616f264b39a2b72422d2d5d947 53a12573b5e14406bf85e864dc0acd68 - default default] [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] Failed to build and run instance: libvirt.libvirtError: unsupported configuration: USB is disabled for this domain, but USB devices are present in the domain XML

2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] Traceback (most recent call last):
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 2442, in _build_and_run_instance
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] self.driver.spawn(context, instance, image_meta,
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 3766, in spawn
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] self._create_guest_with_network(
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 6758, in _create_guest_with_network
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] self._cleanup_failed_start(
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] self.force_reraise()
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] six.reraise(self.type_, self.value, self.tb)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] raise value
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 6727, in _create_guest_with_network
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] guest = self._create_guest(
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 6655, in _create_guest
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] guest = libvirt_guest.Guest.create(xml, self._host)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/guest.py", line 144, in create
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] LOG.error('Error defining a guest with XML: %s',
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] self.force_reraise()
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] six.reraise(self.type_, self.value, self.tb)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] raise value
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/guest.py", line 141, in create
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] guest = host.write_instance_config(xml)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/nova/virt/libvirt/host.py", line 1144, in write_instance_config
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] domain = self.get_connection().defineXML(xml)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 193, in doit
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] result = proxy_call(self._autowrap, f, *args, **kwargs)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 151, in proxy_call
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] rv = execute(f, *args, **kwargs)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 132, in execute
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] six.reraise(c, e, tb)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] raise value
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 86, in tworker
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] rv = meth(*args, **kwargs)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] File "/usr/lib/python3/dist-packages/libvirt.py", line 4047, in defineXML
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] libvirt.libvirtError: unsupported configuration: USB is disabled for this domain, but USB devices are present in the domain XML
2022-02-27 02:31:42.000 1806 ERROR nova.compute.manager [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a]
2022-02-27 02:31:42.010 1806 INFO os_vif [req-b7f8ef2c-f89a-4380-b573-bba4b99aa296 d20aa0616f264b39a2b72422d2d5d947 53a12573b5e14406bf85e864dc0acd68 - default default] Successfully unplugged vif VIFBridge(active=False,address=fa:16:3e:a8:05:3a,bridge_name='brqea534e6c-ea',has_traffic_filtering=True,id=a68a80ce-f45e-48d6-a646-d1452cbf4764,network=Network(ea534e6c-eafb-4ab2-a1a2-420029caca48),plugin='linux_bridge',port_profile=<?>,preserve_on_delete=False,vif_name='tapa68a80ce-f4')
2022-02-27 02:31:43.891 1806 INFO nova.compute.manager [req-b7f8ef2c-f89a-4380-b573-bba4b99aa296 d20aa0616f264b39a2b72422d2d5d947 53a12573b5e14406bf85e864dc0acd68 - default default] [instance: bd456534-9ccd-458b-b0d1-f73bd0f85d2a] Took 1.88 seconds to deallocate network for instance.
2022-02-27 02:31:44.546 1806 INFO nova.scheduler.client.report [req-b7f8ef2c-f89a-4380-b573-bba4b99aa296 d20aa0616f264b39a2b72422d2d5d947 53a12573b5e14406bf85e864dc0acd68 - default default] Deleted allocation for instance bd456534-9ccd-458b-b0d1-f73bd0f85d2a

Revision history for this message
Evan (nesboy43) wrote :

Fixed the USB Error by changing pointertype in nova.conf to ps2mouse.

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Looks to me a config issue, not a project bug.

Changed in nova:
status: New → Invalid
Felipe Reyes (freyes)
Changed in charm-nova-compute:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (master)
Changed in charm-nova-compute:
status: Triaged → In Progress
Revision history for this message
Evan (nesboy43) wrote :

Wanted to update that I resolved this a while back. I had only used the 32 bit Ubuntu image for Raspberry Pi when only the 64 bit had the necessary files to support KVM. Reformatting with a 64 bit image resolved it.

Revision history for this message
Felipe Reyes (freyes) wrote : Re: [Bug 1962381] Re: Nova Instance Creation Fails with Error: USB is diabled for this domain

On Fri, 2022-10-21 at 19:23 +0000, Evan wrote:
> Wanted to update that I resolved this a while back. I had only used the
> 32 bit Ubuntu image for Raspberry Pi when only the 64 bit had the
> necessary files to support KVM. Reformatting with a 64 bit image
> resolved it.

Thanks for following up on this, Evan. We found this same problem on s390x architecture, the change
in the configuration as you mentioned did the trick, thanks for posting it :-) it saved me a lot of
time

Revision history for this message
Evan (nesboy43) wrote :

Glad to hear it helped!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/862400
Committed: https://opendev.org/openstack/charm-nova-compute/commit/6a710c86a394584a8bfa955713f1f9653f6e0607
Submitter: "Zuul (22348)"
Branch: master

commit 6a710c86a394584a8bfa955713f1f9653f6e0607
Author: Felipe Reyes <email address hidden>
Date: Fri Oct 21 15:54:19 2022 -0300

    [s390x] Set pointer_model to ps2mouse

    On s390x environments there is no usb controller, hence the default
    pointer model (usbtable) produces failures when launching new instances
    with the following error:

        unsupported configuration: USB is disabled for this domain,
        but USB devices are present in the domain XML

    Change-Id: I58f7f1148096d703384e089292959718fd413157
    Closes-Bug: #1962381

Changed in charm-nova-compute:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/862588
Committed: https://opendev.org/openstack/charm-nova-compute/commit/fd5ed42b0f827523414d0e8b351c788737f36eab
Submitter: "Zuul (22348)"
Branch: stable/zed

commit fd5ed42b0f827523414d0e8b351c788737f36eab
Author: Felipe Reyes <email address hidden>
Date: Fri Oct 21 15:54:19 2022 -0300

    [s390x] Set pointer_model to ps2mouse

    On s390x environments there is no usb controller, hence the default
    pointer model (usbtable) produces failures when launching new instances
    with the following error:

        unsupported configuration: USB is disabled for this domain,
        but USB devices are present in the domain XML

    Change-Id: I58f7f1148096d703384e089292959718fd413157
    Closes-Bug: #1962381
    (cherry picked from commit 6a710c86a394584a8bfa955713f1f9653f6e0607)

tags: added: in-stable-zed
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.