← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 954913] Re: xenapi host refresh not dealing with exceptions well when updating host stats

 

This is a bit of non issue

** Changed in: nova
       Status: Confirmed => Won't Fix

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

Title:
  xenapi host refresh not dealing with exceptions well when updating
  host stats

Status in OpenStack Compute (Nova):
  Won't Fix

Bug description:
  2012-03-13 05:41:32 DEBUG nova.virt.xenapi.host [-] Updating host stats from (pid=20186) update_status /usr/lib/python2.7/dist-packages/nova/virt/xenapi/host.py:124
  2012-03-13 05:41:32 WARNING nova.virt.xenapi_conn [-] Task [Async.host.call_plugin] OpaqueRef:71f0f3bb-3086-9a05-4313-d8a423ab9d45 status: failure    ['XENAPI_PLUGIN_FAILURE', 'non-zero exit', '', '']
  2012-03-13 05:41:32 ERROR nova.virt.xenapi.host [-] The call to host_data returned an error: ['XENAPI_PLUGIN_FAILURE', 'non-zero exit', '', ''].
  2012-03-13 05:41:32 CRITICAL nova [-] 'str' object does not support item assignment
  (nova): TRACE: Traceback (most recent call last):
  (nova): TRACE:   File "/usr/bin/nova-compute", line 49, in <module>
  (nova): TRACE:     service.wait()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait
  (nova): TRACE:     _launcher.wait()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait
  (nova): TRACE:     service.wait()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
  (nova): TRACE:     return self._exit_event.wait()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
  (nova): TRACE:     return hubs.get_hub().switch()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
  (nova): TRACE:     return self.greenlet.switch()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
  (nova): TRACE:     result = function(*args, **kwargs)
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
  (nova): TRACE:     server.start()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 174, in start
  (nova): TRACE:     self.manager.update_available_resource(ctxt)
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2293, in update_available_resource
  (nova): TRACE:     self.driver.update_available_resource(context, self.host)
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 398, in update_available_resource
  (nova): TRACE:     host_stats = self.get_host_stats(refresh=True)
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 472, in get_host_stats
  (nova): TRACE:     return self.host_state.get_host_stats(refresh=refresh)
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 187, in host_state
  (nova): TRACE:     self._host_state = host.HostState(self._session)
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/host.py", line 110, in __init__
  (nova): TRACE:     self.update_status()
  (nova): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/host.py", line 137, in update_status
  (nova): TRACE:     data["disk_total"] = total
  (nova): TRACE: TypeError: 'str' object does not support item assignment
  (nova): TRACE:

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