swiftclient 'Container HEAD failed' with gnocchi api

asked 2014-06-17 10:23:00 -0600

atmalagon gravatar image

Hi,

I'm trying to use the Gnocchi API. I have a full Devstack installation with Swift enabled and I followed the instructions for installing Gnocchi [1]. When I try to post a request to the api, I get the following trace:

ana@ana-VirtualBox:/opt/stack/gnocchi$ gnocchi-api
2014-06-16 03:55:01.112 30570 ERROR swiftclient [-] Container HEAD failed: http://localhost:8080/v1/TEMPAUTH_admin/5b4a85c5-a962-4c7a-8e65-6460f9ba82c8 404 Not Found
2014-06-16 03:55:01.112 30570 TRACE swiftclient Traceback (most recent call last):
2014-06-16 03:55:01.112 30570 TRACE swiftclient   File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1208, in _retry
2014-06-16 03:55:01.112 30570 TRACE swiftclient     rv = func(self.url, self.token, *args, **kwargs)
2014-06-16 03:55:01.112 30570 TRACE swiftclient   File "/opt/stack/python-swiftclient/swiftclient/client.py", line 650, in head_container
2014-06-16 03:55:01.112 30570 TRACE swiftclient     http_response_content=body)
2014-06-16 03:55:01.112 30570 TRACE swiftclient ClientException: Container HEAD failed: http://localhost:8080/v1/TEMPAUTH_admin/5b4a85c5-a962-4c7a-8e65-6460f9ba82c8 404 Not Found
2014-06-16 03:55:01.112 30570 TRACE swiftclient 
localhost - - [16/Jun/2014 03:55:01] "POST /v1/entity HTTP/1.1" 201 84

This is the request I put in:

import requests
import json

r = requests.post('http://0.0.0.0:8041/v1/entity', data=json.dumps({"archives": [[1, 3600],[1,60]]}))

Could someone put me in the right direction for understanding the swiftclient Container HEAD failed message?

Thanks!

[1] https://github.com/stackforge/gnocchi/blob/master/README.rst (https://github.com/stackforge/gnocchi...)

edit retag flag offensive close merge delete