Ask Your Question

Revision history [back]

unhashable type dict (Ceilometer)

I'm making API calls to ceilometer to get statistics

I'm calling /v2/meters/METER_NAME/statistics and passing a resource_id in the q parameter. In /var/log/ceilometer/api.log I see the following errors:

2014-01-20 15:15:09.678 3301 INFO urllib3.connectionpool [-] Starting new HTTP connection (1):
2014-01-20 15:15:09.811 3301 ERROR wsme.api [-] Server-side error: "unhashable type: 'dict'". Detail: 
Traceback (most recent call last):

  File "/usr/lib/python2.6/site-packages/wsmeext/", line 73, in callfunction
    pecan.request.body, pecan.request.content_type

  File "/usr/lib/python2.6/site-packages/wsme/rest/", line 279, in get_args
    from_body = args_from_body(funcdef, body, mimetype)

  File "/usr/lib/python2.6/site-packages/wsme/rest/", line 226, in args_from_body
    body, datatypes, bodyarg=funcdef.body_type is not None

  File "/usr/lib/python2.6/site-packages/wsme/rest/", line 224, in parse
    if key not in datatypes:

TypeError: unhashable type: 'dict'

Can someone suggest what I'm likely doing wrong here?