← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1372829] [NEW] vcpu_pin_set setting raises exception

 

Public bug reported:

once enabled vcpu_pin_set=0-9  in nova.conf, got the following
exception:

2014-09-23 11:00:41.603 14427 DEBUG nova.openstack.common.processutils [-] Result was 0 execute /opt/stack/nova/nova/openstack/common/processutils.py:195
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 455, in fire_timers
    timer()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 168, in _do_send
    waiter.switch(result)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212, in main
    result = function(*args, **kwargs)
  File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
    service.start()
  File "/opt/stack/nova/nova/service.py", line 181, in start
    self.manager.pre_start_hook()
  File "/opt/stack/nova/nova/compute/manager.py", line 1152, in pre_start_hook
    self.update_available_resource(nova.context.get_admin_context())
  File "/opt/stack/nova/nova/compute/manager.py", line 5922, in update_available_resource
    nodenames = set(self.driver.get_available_nodes())
  File "/opt/stack/nova/nova/virt/driver.py", line 1237, in get_available_nodes
    stats = self.get_host_stats(refresh=refresh)
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5760, in get_host_stats
    return self.host_state.get_host_stats(refresh=refresh)
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 470, in host_state
    self._host_state = HostState(self)
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6320, in __init__
    self.update_status()
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6376, in update_status
    numa_topology = self.driver._get_host_numa_topology()
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4869, in _get_host_numa_topology
    cell.cpuset &= allowed_cpus
TypeError: unsupported operand type(s) for &=: 'set' and 'list'
2014-09-23 11:00:42.032 14427 ERROR nova.openstack.common.threadgroup [-] unsupported operand type(s) for &=: 'set' and 'list'
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 125, in wait
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     x.wait()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 173, in wait
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 293, in switch
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212, in main
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     service.start()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/service.py", line 181, in start
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self.manager.pre_start_hook()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 1152, in pre_start_hook
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self.update_available_resource(nova.context.get_admin_context())
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 5922, in update_available_resource
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     nodenames = set(self.driver.get_available_nodes())
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/driver.py", line 1237, in get_available_nodes
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     stats = self.get_host_stats(refresh=refresh)
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5760, in get_host_stats
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self.host_state.get_host_stats(refresh=refresh)
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 470, in host_state
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self._host_state = HostState(self)
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6320, in __init__
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self.update_status()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6376, in update_status
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     numa_topology = self.driver._get_host_numa_topology()
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4869, in _get_host_numa_topology
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     cell.cpuset &= allowed_cpus
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup TypeError: unsupported operand type(s) for &=: 'set' and 'list'
2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup

** 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/1372829

Title:
  vcpu_pin_set setting raises exception

Status in OpenStack Compute (Nova):
  New

Bug description:
  once enabled vcpu_pin_set=0-9  in nova.conf, got the following
  exception:

  2014-09-23 11:00:41.603 14427 DEBUG nova.openstack.common.processutils [-] Result was 0 execute /opt/stack/nova/nova/openstack/common/processutils.py:195
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 455, in fire_timers
      timer()
    File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__
      cb(*args, **kw)
    File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 168, in _do_send
      waiter.switch(result)
    File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212, in main
      result = function(*args, **kwargs)
    File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
      service.start()
    File "/opt/stack/nova/nova/service.py", line 181, in start
      self.manager.pre_start_hook()
    File "/opt/stack/nova/nova/compute/manager.py", line 1152, in pre_start_hook
      self.update_available_resource(nova.context.get_admin_context())
    File "/opt/stack/nova/nova/compute/manager.py", line 5922, in update_available_resource
      nodenames = set(self.driver.get_available_nodes())
    File "/opt/stack/nova/nova/virt/driver.py", line 1237, in get_available_nodes
      stats = self.get_host_stats(refresh=refresh)
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5760, in get_host_stats
      return self.host_state.get_host_stats(refresh=refresh)
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 470, in host_state
      self._host_state = HostState(self)
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6320, in __init__
      self.update_status()
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6376, in update_status
      numa_topology = self.driver._get_host_numa_topology()
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4869, in _get_host_numa_topology
      cell.cpuset &= allowed_cpus
  TypeError: unsupported operand type(s) for &=: 'set' and 'list'
  2014-09-23 11:00:42.032 14427 ERROR nova.openstack.common.threadgroup [-] unsupported operand type(s) for &=: 'set' and 'list'
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 125, in wait
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     x.wait()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 173, in wait
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 293, in switch
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212, in main
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     service.start()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/service.py", line 181, in start
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self.manager.pre_start_hook()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 1152, in pre_start_hook
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self.update_available_resource(nova.context.get_admin_context())
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 5922, in update_available_resource
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     nodenames = set(self.driver.get_available_nodes())
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/driver.py", line 1237, in get_available_nodes
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     stats = self.get_host_stats(refresh=refresh)
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5760, in get_host_stats
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     return self.host_state.get_host_stats(refresh=refresh)
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 470, in host_state
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self._host_state = HostState(self)
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6320, in __init__
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     self.update_status()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6376, in update_status
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     numa_topology = self.driver._get_host_numa_topology()
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4869, in _get_host_numa_topology
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup     cell.cpuset &= allowed_cpus
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup TypeError: unsupported operand type(s) for &=: 'set' and 'list'
  2014-09-23 11:00:42.032 14427 TRACE nova.openstack.common.threadgroup

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


Follow ups

References