Ensure that the user/project exist on alarm update

This patch ensure that the user and project exists before updating the
alarm.

Closes bug #1260776

Change-Id: I25cf55d91b78a32bda671426972b7f418bf85e21
Ensure the correct error message is displayed

When a untranslated error message pass through the translation pecan
hook, the previous translated error is send to the client.

This patch fix that by reseting the "translatable_error" of the
translation pecan hook before each request.

Change-Id: Icee79cf09fd696655048c7c0cf8a3d6706e31701
Fixes: bug #1260398
Convert event timestamp to PrecisionTimestamp

Before the timestamps for event and trait are stored in a Float
In mysql, the default precision won't work well, this one are rounded.

This patch, change the Float by the PrecisionTimestamp Column Type, like
the sample timestamp that demand the same precision.

And ensure that get_events always return datetime object.

Change-Id: I1f986784b07afa50bdbb7faa9499e7b614da8ec1
Merge "Ensure that the user/project exist on alarm update"
Sync config generator from oslo-incubator

Sync from oslo-incubator with the following patches about the config
generator so that adding new config group won't result the huge change
in the config generator's output.

4b3e32b Sort the output of config/generator.py by group name

Change-Id: Ibe0687711e75366a6d11442dd6b2237b1bb91e11
Merge "Ensure the correct error message is displayed"
Merge "Convert event timestamp to PrecisionTimestamp"
Merge "Sync config generator from oslo-incubator"
Correct env variable in file oslo.config.generator.rc

Use CEILOMETER_CONFIG_GENERATOR_EXTRA_MODULES as the environment
variable to include keystoneclient middleware's option in the config
generator's output.

Change-Id: Ibddeb587b22a0569dcb8db58d7cd8626b4482cb6
Closes-Bug: 1262331
Don't assume alarms are returned in insert order

The previous implentation of the tests assure than the db backends
return the alarms into the insert order. This is false for mysql.

The patch rewritte the tests to make it compatible to mysql

Change-Id: I146de0d8cef78b6c734bc6742238b939422645b9
Merge "Don't assume alarms are returned in insert order"
Added resources support in pollster's interface

1. Change the pollster's interface to support resources:
- Added optional parameter 'resources' to the method get_samples. It
  specifies a list of the endpoints from which the pollster would get
  data.

2. Change the PollingTask to record the resources for each pollster.

3. Pass the resources recorded in PollingTask to the pollsters in
central agent.

This patch only changes the interface of pollsters and PollingTask in
central agent. The existing central agent's pollsters still ignore the
resources passed in by the PollingTask.

Implements: blueprint support-resources-pipeline-item
Change-Id: Ic7a83c63ea291d0527004113bc8d8bb09311d14f
Add resource loader support

Added the resource loader interface and base classes, also the
FileResourceLoader implementation to load the resources from a YAML
file.

The new method ceilometer.resourceloader.get_resources() can find the
appropriate resource loader and use that loader to load the resources to
return.

e.g: Suppose we have a YAML file /foo/bar with the following content:

- snmp://1.1.1.1
- snmp://2.2.2.2

and for the foloowing pipeline resource definition:

resources:
    - fileloader:///foo/bar
    - ipmi://1.2.3.4

The get_resources() will use the FileResourceLoader to load the
resources from the file /foo/bar. For the other resource
'ipmi://1.2.3.4', because no mapping resource loader can be found,
it will assume it's the actual resource to be return. So the returned
list of get_resources() is: ['snmp://1.1.1.1', 'snmp://2.2.2.2',
'ipmi://1.2.3.4'].

Implements: blueprint support-resources-pipeline-item
Change-Id: I438ecabdcfae0a03fa89d150d31dc9fbb3aeda1f
Ganglia Pollster

Todo :
* unittest
* doc

imlements bp applications-metrics-from-instances

Change-Id: I0fdd6691a22d715d573c1086d1a5df1827855167