← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1708433] Re: Attaching sriov nic VM fail with keyError pci_slot

 

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

** Changed in: nova
       Status: Incomplete => Expired

-- 
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/1708433

Title:
  Attaching sriov nic VM fail with keyError pci_slot

Status in OpenStack Compute (nova):
  Expired

Bug description:
  Trace back:

  2017-08-03 12:03:50.064 DEBUG nova.network.os_vif_util [req-f1414ec4-6df7-46d8-9c97-f678c0f94d77 demo admin] No conversion for VIF type hw_veb yet from (pid=134902) nova_to_osvif_vif /opt/stack/nova/nova/network/os_vif_util.py:435
  2017-08-03 12:03:50.119 ERROR oslo_messaging.rpc.server [req-f1414ec4-6df7-46d8-9c97-f678c0f94d77 demo admin] Exception during message handling: KeyError: 'pci_slot'
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server Traceback (most recent call last):
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 160, in _process_incoming
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 76, in wrapped
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     function_name, call_dict, binary)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     self.force_reraise()
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 67, in wrapped
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     return f(self, context, *args, **kw)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 211, in decorated_function
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     self.force_reraise()
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 199, in decorated_function
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 5166, in attach_interface
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     network_info[0])
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1443, in attach_interface
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     self.vif_driver.plug(instance, vif)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 794, in plug
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     func(instance, vif)
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 650, in plug_hw_veb
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server     vif['profile']['pci_slot'],
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server KeyError: 'pci_slot'
  2017-08-03 12:03:50.119 TRACE oslo_messaging.rpc.server

  Steps to recreate:
  - Create a VM on the compute node of a multi-node deployment.
  - Attach an direct/macvtap bound SRIOV port:
     openstack server add port VM1 port1

  Results:
  - The above traceback is found in the n-cpu service on the compute node.

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


References