← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1435981] [NEW] PciPassthroughFilter throws exception if host has no pci devices

 

Public bug reported:

When booting a VM with pci devices the PciPassthroughFilter will raise
an exception if one of the  hosts doesn't have any assignable pci
devices (because pci_stats is set to None on host_state in that case)


Traceback (most recent call last):
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_repl
y
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 142, in inner
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     return func(*args, **kwargs)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/manager.py", line 86, in select_destinations
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     filter_properties)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filter_scheduler.py", line 67, in select_destinations
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     filter_properties)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filter_scheduler.py", line 138, in _schedule
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     filter_properties, index=num)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/host_manager.py", line 451, in get_filtered_hosts
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     hosts, filter_properties, index)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/filters.py", line 78, in get_filtered_objects
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     list_objs = list(objs)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/filters.py", line 44, in filter_all
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     if self._filter_one(obj, filter_properties):
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filters/__init__.py", line 27, in _filter_one
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     return self.host_passes(obj, filter_properties)
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filters/pci_passthrough_filter.py", line 48, in host_passes
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     if not host_state.pci_stats.support_requests(pci_requests.requests):
2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher AttributeError: 'NoneType' object has no attribute 'support_requests'

** Affects: nova
     Importance: Undecided
     Assignee: James Chapman (james-p-chapman)
         Status: New


** Tags: pci-passthrough

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

Title:
  PciPassthroughFilter throws exception if host has no pci devices

Status in OpenStack Compute (Nova):
  New

Bug description:
  When booting a VM with pci devices the PciPassthroughFilter will raise
  an exception if one of the  hosts doesn't have any assignable pci
  devices (because pci_stats is set to None on host_state in that case)

  
  Traceback (most recent call last):
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_repl
  y
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 142, in inner
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     return func(*args, **kwargs)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/manager.py", line 86, in select_destinations
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     filter_properties)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filter_scheduler.py", line 67, in select_destinations
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     filter_properties)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filter_scheduler.py", line 138, in _schedule
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     filter_properties, index=num)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/host_manager.py", line 451, in get_filtered_hosts
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     hosts, filter_properties, index)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/filters.py", line 78, in get_filtered_objects
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     list_objs = list(objs)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/filters.py", line 44, in filter_all
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     if self._filter_one(obj, filter_properties):
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filters/__init__.py", line 27, in _filter_one
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     return self.host_passes(obj, filter_properties)
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher   File "/shared/stack/nova/nova/scheduler/filters/pci_passthrough_filter.py", line 48, in host_passes
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher     if not host_state.pci_stats.support_requests(pci_requests.requests):
  2015-03-24 16:51:46.744 TRACE oslo_messaging.rpc.dispatcher AttributeError: 'NoneType' object has no attribute 'support_requests'

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


Follow ups

References