Error updating bandwidth usage cache

Bug #918490 reported by Paul Voccio
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Monsyne Dragon

Bug Description

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:

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Changed in nova:
assignee: nobody → Philip Knouff (philip-knouff)
status: Confirmed → In Progress
Revision history for this message
Monsyne Dragon (mdragon) wrote :

Fix already in review for this: https://review.openstack.org/#change,3595

Changed in nova:
assignee: Philip Knouff (philip-knouff) → nobody
Changed in nova:
assignee: nobody → Monsyne Dragon (mdragon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/3595
Committed: http://github.com/openstack/nova/commit/66a1bb3816abfa154982c6d80d88b851cefd9800
Submitter: Jenkins
Branch: master

commit 66a1bb3816abfa154982c6d80d88b851cefd9800
Author: Monsyne Dragon <email address hidden>
Date: Tue Jan 31 21:22:22 2012 +0000

    Make parsing of usage stats from XS more robust.

    Better handle odd values in parsing of usage data from xenserver.
    Fixes bug 918490

    Change-Id: Ie634ba6a740d0ea098d7fc4e13b4b46b5203ce79

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.