In trying to update my bandwidth reports using code from trunk, I get the following trace in compute:
2012-01-19 01:53:26,912 DEBUG nova.manager [365cb355-335d-4308-9a85-e5b31e25f79b None None] Running periodic task ComputeManager._poll_bandwidth_usage from (pid=15463) periodic_tasks /usr/lib/pymodules/python2.6/nova/manager.py:152
2012-01-19 01:53:26,912 INFO nova.compute.manager [365cb355-335d-4308-9a85-e5b31e25f79b None None] Updating bandwidth usage cache
2012-01-19 01:53:27,170 ERROR nova.manager [365cb355-335d-4308-9a85-e5b31e25f79b None None] Error during ComputeManager._poll_bandwidth_usage: quantize with one INF
(nova.manager): TRACE: Traceback (most recent call last):
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/manager.py", line 155, in periodic_tasks
(nova.manager): TRACE: task(self, context)
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 1969, in _poll_bandwidth_usage
(nova.manager): TRACE: bw_usage = self.driver.get_all_bw_usage(start_time, stop_time)
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi_conn.py", line 322, in get_all_bw_usage
(nova.manager): TRACE: for iusage in self._vmops.get_all_bw_usage(start_time, stop_time).\
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 1324, in get_all_bw_usage
(nova.manager): TRACE: stop_time)
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 904, in compile_metrics
(nova.manager): TRACE: return parse_rrd_update(doc, start_time, stop_time)
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 1046, in parse_rrd_update
(nova.manager): TRACE: vm_data[name] = average_series(data, col, start, until)
(nova.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py", line 1056, in average_series
(nova.manager): TRACE: return (sum(vals) / len(vals)).quantize(Decimal('1.0000'))
(nova.manager): TRACE: File "/usr/lib/python2.6/decimal.py", line 2331, in quantize
(nova.manager): TRACE: 'quantize with one INF')
(nova.manager): TRACE: File "/usr/lib/python2.6/decimal.py", line 3778, in _raise_error
(nova.manager): TRACE: raise error(explanation)
(nova.manager): TRACE: InvalidOperation: quantize with one INF
(nova.manager): TRACE:
Fix already in review for this: https:/ /review. openstack. org/#change, 3595