get_all_bw_usage raises a keyerror from deep within a code knot. I used Quantum and Melange while generating this.
ERROR nova.manager [-] Error during ComputeManager._poll_bandwidth_usage: u'0'
Traceback (most recent call last):
File "/home/aaron/openstack/nova/nova/manager.py", line 155, in periodic_tasks
task(self, context)
File "/home/aaron/openstack/nova/nova/compute/manager.py", line 2016, in _poll_bandwidth_usage
bw_usage = self.driver.get_all_bw_usage(start_time, stop_time)
File "/home/aaron/openstack/nova/nova/virt/xenapi_conn.py", line 321, in get_all_bw_usage
for iusage in self._vmops.get_all_bw_usage(start_time, stop_time).\
File "/home/aaron/openstack/nova/nova/virt/xenapi/vmops.py", line 1370, in get_all_bw_usage
vif_bw = vifs_bw.setdefault(vif_map[vname], {})(nova.manager):
KeyError: u'0'
Aaron: Can you provide any more information as to how this error can be reproduced? I'm not seeing this in my test environment and I'm curious how I might be able to duplicate it. Also, it seems like this code has been updated recently, so the traceback isn't matching up with the current code, making it a bit more difficult to see if this is still an issue.