← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1376307] Re: nova compute is crashing with the error TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

 

** Changed in: nova
       Status: Fix Committed => Fix Released

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

Title:
  nova compute is crashing with the error TypeError: unsupported operand
  type(s) for /: 'NoneType' and 'int'

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  nova compute is crashing with the below error when nova compute is
  started

  
  2014-10-01 14:50:26.854 ^[[00;32mDEBUG nova.virt.libvirt.driver [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mUpdating host stats^[[00m ^[[00;33mfrom (pid=9945) update_status /opt/stack/nova/nova/virt/libvirt/driver.py:6361^[[00m
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 449, 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 167, in _do_send
      waiter.switch(result)
    File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 207, 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 5946, 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 5771, 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 6331, in __init__
      self.update_status()
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6387, in update_status
      numa_topology = self.driver._get_host_numa_topology()
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4828, in _get_host_numa_topology
      for cell in topology.cells])
  TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
  2014-10-01 14:50:26.989 ^[[01;31mERROR nova.openstack.common.threadgroup [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31munsupported operand type(s) for /: 'NoneType' and 'int'^[[00m


  Seems like the commit https://github.com/openstack/nova/commit/6a374f21495c12568e4754800574e6703a0e626f
  is the cause.

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


References