RETIRED, further work has moved to Debian project infrastructure
Go to file
Julien Danjou 0f831a8ee6 swift: make sure to retry if the client cannot find Swift
The following can happen:

2017-05-02 15:21:24.363 96139 CRITICAL gnocchi [-] ClientException: Endpoint for object-store not found - have you specified a region?
2017-05-02 15:21:24.363 96139 ERROR gnocchi Traceback (most recent call last):
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/bin/gnocchi-statsd", line 10, in <module>
2017-05-02 15:21:24.363 96139 ERROR gnocchi     sys.exit(statsd())
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/cli.py", line 74, in statsd
2017-05-02 15:21:24.363 96139 ERROR gnocchi     statsd_service.start()
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/statsd.py", line 174, in start
2017-05-02 15:21:24.363 96139 ERROR gnocchi     stats = Stats(conf)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/statsd.py", line 38, in __init__
2017-05-02 15:21:24.363 96139 ERROR gnocchi     self.storage = storage.get_driver(self.conf)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 158, in get_driver
2017-05-02 15:21:24.363 96139 ERROR gnocchi     return get_driver_class(conf)(conf.storage)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/swift.py", line 98, in __init__
2017-05-02 15:21:24.363 96139 ERROR gnocchi     self.swift.put_container(self.MEASURE_PREFIX)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1728, in put_container
2017-05-02 15:21:24.363 96139 ERROR gnocchi     query_string=query_string)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1635, in _retry
2017-05-02 15:21:24.363 96139 ERROR gnocchi     self.url, self.token = self.get_auth()
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1587, in get_auth
2017-05-02 15:21:24.363 96139 ERROR gnocchi     timeout=self.timeout)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 662, in get_auth
2017-05-02 15:21:24.363 96139 ERROR gnocchi     auth_version=auth_version)
2017-05-02 15:21:24.363 96139 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 596, in get_auth_keystone
2017-05-02 15:21:24.363 96139 ERROR gnocchi     'have you specified a region?' % service_type)
2017-05-02 15:21:24.363 96139 ERROR gnocchi ClientException: Endpoint for object-store not found - have you specified a region?
2017-05-02 15:21:24.363 96139 ERROR gnocchi

Make sure we retry.

Change-Id: I12ad167962aa62c22785c32394a607929ca8b925
(cherry picked from commit d81f13dc9f)
2017-05-15 17:31:53 +02:00
devstack cap gnocchiclient 2017-02-01 10:10:13 -05:00
doc/source carbonara: add support for Gnocchi v2 measures format 2016-11-10 13:58:28 +01:00
etc/gnocchi config: only include oslo.middleware options that are shipped 2016-12-08 15:40:12 +00:00
gnocchi swift: make sure to retry if the client cannot find Swift 2017-05-15 17:31:53 +02:00
releasenotes/notes releasenotes: fix typo in storage-engine-v3 2016-09-15 22:14:50 +02:00
tools carbonara: replace msgpack encoding with struct for new measures 2016-09-16 19:28:20 +02:00
.gitignore Enable releasenotes documentation 2016-05-26 09:34:33 +00:00
.gitreview Update .gitreview for stable/3.0 2016-09-22 08:30:08 -04:00
.testr.conf Correct concurrency of gabbi tests for gabbi 1.22.0 2016-06-16 12:48:59 +01:00
LICENSE Add missing License file 2015-05-15 14:37:04 -04:00
MANIFEST.in Generate configuration file in sdist 2016-01-19 16:27:35 +01:00
README.rst Make the content of PKG-INFO can be decoded 2016-03-07 14:38:06 +08:00
bindep.txt Add bindep.txt to express binary dependencies 2016-08-18 12:31:30 +02:00
requirements.txt Fix oslo.log minimum requirement 2016-10-05 08:53:22 +00:00
run-tests.sh sql: default to pymysql 2016-05-18 10:16:04 +02:00
setup.cfg Limit lz4 to <0.9.0 2017-04-11 19:24:43 +00:00
setup.py Import 2014-05-07 12:04:37 +02:00
tox.ini tox: remove useless keyword 2016-09-15 08:29:55 +02:00

README.rst

Gnocchi - Metric as a Service

image

Gnocchi is a multi-tenant timeseries, metrics and resources database. It provides an HTTP REST interface to create and manipulate the data. It is designed to store metrics at a very large scale while providing access to metrics and resources information to operators and users.

Gnocchi is part of the OpenStack project. While Gnocchi has support for OpenStack, it is fully able to work stand-alone.

You can read the full documentation online at http://gnocchi.xyz.