Ask Your Question
0

unhashable type dict (Ceilometer)

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

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): 192.168.0.177
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/pecan.py", line 73, in callfunction
    pecan.request.body, pecan.request.content_type

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

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

  File "/usr/lib/python2.6/site-packages/wsme/rest/json.py", 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
0

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

rbowen gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 509 times

Last updated: Jan 20 '14