OpenStack Telemetry (Ceilometer) Alarming
Go to file
Fei Long Wang fbb1eb9285 Fix return error when resource can't be found
By current implement, the HTTP request for /v2/resources/<resource_id>
will return 500 if there is no coresponding resource or the resource id
is invalid. And the response is as below:

{"error_message": "{"debuginfo": null, "faultcode": "Server",
"faultstring": "list index out of range"}"}

After fixed, the response will be like this:

{"error_message": "{"debuginfo": null, "faultcode": "Client",
"faultstring": "Invalid input for field/attribute resource_id.
Value: '9'. Unknown resource"}"}

Fixes bug: 1195925

Change-Id: I73c73fb3ba57bc6cbbf421f9ac5ec3cdb68ce784
2013-07-02 00:12:12 +08:00
bin Merge "pipeline: switch publisher loading model to driver" 2013-06-14 15:30:10 +00:00
ceilometer Fix return error when resource can't be found 2013-07-02 00:12:12 +08:00
doc Merge "doc: be more explicit about network counters" 2013-06-25 15:52:45 +00:00
etc Check that the config file sample is always up to date 2013-06-21 13:57:10 +02:00
nova_tests Fix nova notifier tests 2013-06-12 14:41:41 +02:00
tests Fix return error when resource can't be found 2013-07-02 00:12:12 +08:00
tools Check that the config file sample is always up to date 2013-06-21 13:57:10 +02:00
.gitignore Replace nose with testr 2013-05-18 18:06:38 +10:00
.gitreview Update .gitreview for openstack. 2012-11-11 19:13:08 +00:00
.testr.conf Replace nose with testr 2013-05-18 18:06:38 +10:00
babel.cfg Ground work for transifex-ify ceilometer. 2012-12-18 10:14:03 +08:00
CONTRIBUTING.rst Switch to pbr. 2013-05-11 12:44:54 -04:00
LICENSE include a copy of the ASL 2.0 2013-03-15 14:25:48 +00:00
MANIFEST.in Switch to pbr. 2013-05-11 12:44:54 -04:00
openstack-common.conf Update oslo, use new configuration generator 2013-05-28 11:50:23 -04:00
README.md Update readme and create release notes 2012-10-05 20:26:51 +02:00
ReleaseNotes Update documentation URL 2012-12-05 10:22:43 +01:00
requirements.txt Pin the keystone client version 2013-06-26 12:35:47 -04:00
setup.cfg Rename the MeterPublisher to RPCPublisher 2013-06-14 17:39:27 +02:00
setup.py Switch to pbr. 2013-05-11 12:44:54 -04:00
test-requirements.txt Remove explicit distribute depend. 2013-06-11 11:36:05 -07:00
tox.ini Check that the config file sample is always up to date 2013-06-21 13:57:10 +02:00

ceilometer

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

http://launchpad.net/ceilometer