← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1962381] [NEW] Nova Instance Creation Fails with Error: USB is diabled for this domain

 

Public bug reported:

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

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1962381

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

Status in OpenStack Compute (nova):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1962381/+subscriptions



Follow ups