Ask Your Question

unhashable type dict (Ceilometer)

asked 2014-01-20 14:21:13 -0600

rbowen gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-20 14:36:31 -0600

rbowen gravatar image

Sorry, my error. I was passing invalid query arguments. :(

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-01-20 14:21:13 -0600

Seen: 581 times

Last updated: Jan 20 '14