rrd2whisper traceback - KeyError: 'rra'

Bug #1003944 reported by Jeff Schroeder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
Fix Released
Low
Unassigned

Bug Description

$ rrd2whisper.py idisk_usedInodes.rrd
Traceback (most recent call last):
  File "./rrd2whisper.py", line 26, in <module>
    for rra in rrd_info['rra']:
KeyError: 'rra'

Relevant info when applied to the attached rrd file:

>>> rrd_info = rrdtool.info("idisk_usedInodes.rrd")
>>> from pprint import pprint; pprint( rrd_info.keys() )
['rra[6].cur_row',
 'rra[6].pdp_per_row',
 'ds[ds0].index',
 'rra[0].cdp_prep[0].value',
 'rra[5].cdp_prep[0].value',
 'rra[4].cdp_prep[0].unknown_datapoints',
 'rra[1].pdp_per_row',
 'ds[ds0].min',
 'rra[1].xff',
 'rra[3].cur_row',
 'rra[3].cdp_prep[0].value',
 'rra[2].cf',
 'rra[4].cur_row',
 'rra[2].cdp_prep[0].value',
 'rra[0].cdp_prep[0].unknown_datapoints',
 'rra[5].cdp_prep[0].unknown_datapoints',
 'ds[ds0].value',
 'ds[ds0].unknown_sec',
 'ds[ds0].max',
 'rra[1].rows',
 'rra[3].rows',
 'rrd_version',
 'rra[6].rows',
 'filename',
 'rra[1].cf',
 'last_update',
 'rra[5].rows',
 'rra[4].xff',
 'rra[0].cf',
 'rra[4].cf',
 'rra[3].pdp_per_row',
 'rra[2].xff',
 'rra[2].rows',
 'rra[0].pdp_per_row',
 'rra[0].cur_row',
 'rra[6].xff',
 'rra[3].cdp_prep[0].unknown_datapoints',
 'rra[4].pdp_per_row',
 'header_size',
 'ds[ds0].last_ds',
 'step',
 'rra[6].cdp_prep[0].value',
 'rra[3].xff',
 'ds[ds0].type',
 'rra[6].cdp_prep[0].unknown_datapoints',
 'rra[4].cdp_prep[0].value',
 'rra[5].pdp_per_row',
 'rra[0].rows',
 'rra[1].cdp_prep[0].value',
 'rra[1].cur_row',
 'ds[ds0].minimal_heartbeat',
 'rra[5].cur_row',
 'rra[4].rows',
 'rra[3].cf',
 'rra[0].xff',
 'rra[5].cf',
 'rra[2].cdp_prep[0].unknown_datapoints',
 'rra[5].xff',
 'rra[2].cur_row',
 'rra[6].cf',
 'rra[1].cdp_prep[0].unknown_datapoints',
 'rra[2].pdp_per_row']

There isn't a "rra" key, only rrd[$index]

Revision history for this message
Jeff Schroeder (sejeff) wrote :
Revision history for this message
Michael Leinartas (mleinartas) wrote :

Due to API change in python-rrdtool. Committed a fix to 0.9.x which will make it into 0.9.10

Changed in graphite:
importance: Undecided → Low
milestone: none → 0.9.10
status: New → Fix Committed
Changed in graphite:
status: Fix Committed → Fix Released
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.