Mehdi Abaakouk e52e5070b3 Don't publish samples if resource_id in missing
In swift API, the user can call uri without the resource_id.
This patch skip the samples publishing instead of raising the
exception:

Traceback (most recent call last):
File "ceilometer/objectstore/swift_middleware.py", line 109, in iter_response
    bytes_sent)
File "ceilometer/objectstore/swift_middleware.py", line 160, in publish_sample
    resource_id=account.partition('AUTH_')[2],
AttributeError: 'NoneType' object has no attribute 'partition'

It print the exception of the samples publishing failure instead of
raising a exception to never break the swift API.

Fixes bug #1223259

Change-Id: I5d90fa620c8f8ea82e86524b9703049257ca0345
2013-09-25 09:32:57 +02:00
2013-08-05 11:39:28 +02:00
2013-09-05 14:57:03 +02:00
2013-05-18 18:06:38 +10:00
2012-11-11 19:13:08 +00:00
2013-05-18 18:06:38 +10:00
2013-05-11 12:44:54 -04:00
2013-03-15 14:25:48 +00:00
2013-09-05 12:18:43 -04:00
2013-05-11 12:44:54 -04:00
2013-07-14 21:09:38 +02:00
2012-12-05 10:22:43 +01:00
2013-09-19 11:42:10 +02:00
2013-09-19 11:42:10 +02:00
2013-09-16 16:58:25 +02:00

ceilometer

See the ReleaseNotes document and the project home for more info.

http://launchpad.net/ceilometer

Description
OpenStack Telemetry (Ceilometer) Alarming
Readme 21 MiB
Languages
Python 98%
Shell 1.8%
Mako 0.2%