← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1190515] Re: Incorrect host stats reported by VMWare VCDriver

 

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

Title:
  Incorrect host stats reported by VMWare VCDriver

Status in OpenStack Compute (Nova):
  Fix Released
Status in The OpenStack VMwareAPI subTeam:
  Fix Committed

Bug description:
  Host stats for VCDriver should collect aggregate cluster stats
  rather than that of a single host in the cluster. 

  Because it collects stats from each individual host, 
  nova-compute service fails to start when a cluster contains disconnected ESXi hosts.

  AttributeError: 'Text' object has no attribute 'overallMemoryUsage'
  Removing descriptor: 6
  2013-06-11 18:52:29.184 ERROR nova.openstack.common.threadgroup [-] 'Text' object has no attribute 'overallMemoryUsage'
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     x.wait()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/service.py", line 65, in run_service
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     service.start()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/service.py", line 155, in start
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     self.manager.init_host()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 646, in init_host
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     self._report_driver_status(context)
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/compute/manager.py", line 3816, in _report_driver_status
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     capabilities = self.driver.get_host_stats(refresh=True)
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 305, in get_host_stats
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     return self.host_state.get_host_stats(refresh=refresh)
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 368, in host_state
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     self._cluster)
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 155, in __init__
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     self.update_status()
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 201, in update_status
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup     summary.quickStats.overallMemoryUsage
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup AttributeError: 'Text' object has no attribute 'overallMemoryUsage'
  2013-06-11 18:52:29.184 TRACE nova.openstack.common.threadgroup
  2013-06-11 18:52:29.249 DEBUG amqp [-] Closed channel #1 from (pid=28770) _do_close /usr/local/lib/python2.7/dist-packages/amqp/channel.py:88

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