Sync models with migrations.

There are a lot of difference in models and actual db state
from migrations.
This patch fixes:
- wrong type of column,
- wrong length of column,
- missing indexes,
- extra indexes,
- errors.

bp: ceilometer-db-sync-models-with-migrations

Change-Id: I7f721ea604c0e1dfb8663c3acbaba66dc994e180
Add cleanup migration for indexes.

There are a lot of extra indexes in database (for primary key).

bp: ceilometer-db-sync-models-with-migrations

Change-Id: I44d569de81f078aef27451382baf0a3061f38be2
Fix missing foreign keys.

There are a lot of ForeignKey that had been skipped in database but
declared in models.
This migration adds them.

bp: ceilometer-db-sync-models-with-migrations

Change-Id: I3e34c3e87b3d3df63971fe9994afc63fe27594f8
trailing slash in url causes 404 error

when accessing samples for a specific meter, appending a trailing
slash will add an empty target path to 'remainder', in turn
triggering 404 error. in case last target path in remainder, we
will drop that empty instance.

Change-Id: I583a0fe9755c9bec8bcb08b13a3f1d03a3acf336
Fixes:Bug#1202739
Fixed timestamp creation in MongoDB mapreduce

datetime.strftime('%s') doesn't respect tzinfo see:
http://bugs.python.org/issue12750

Naive time in UTC was converted as a local time
causing test failures in timezone with DST

Change-Id: I0fb5afae91a3b1240402d252b8e3a4fe0497fa05
Change nose to testr in the documentation

This change update how to running test of the documentation.
It change nose reference to the testr.

DocImpact
Fixes bug #1193165

Change-Id: If00ed219d42f268dd3229980f13e9de82929890e
mongodb: do not set replica_set as a global option

Rather use a per-connection parameter.

Change-Id: I141f063f18993e69e6fb1da0d8ea6dd9821a248f
hbase: do not register table_prefix as a global option

Rather use a per-connection option.

Change-Id: I53e26f72d9a7fb0e2778402801a71c2682883452
storage: remove per-driver options

Fixes: bug #1195538

Change-Id: Iac6ace9a2402237543ed35be7f4fcee91ff3e036
Signed-off-by: Julien Danjou <julien@danjou.info>
Remove replace/preserve logic from rate of change transformer

The idea is to not re-emit cpu samples from the cpu_pipeline
by default, but instead simplify the pipeline.yaml by allowing
these original samples to be emitted by the general-purpose
pipeline as before, thus avoiding unintended double-publication.

Now only the derived samples would be emitted from the
scaling or rate of change transformers.

Change-Id: I12623181d289fc0ee3cdb6fcdbacf8e76e53d244
Sets storage_conn in CollectorService.

Fixes bug 1204133

Storage_conn was not being set when the CollectorService
was instantiated, thus enabling event storage would cause
exceptions when trying to store the event.

Change-Id: Ie7f84e1c266239cf7052fd5aba55577a257d2b1b
Always init cfg.CONF before running a test

In all tests cfg.CONF is not (re)initialised correctly
By chance in ceilometer , the only method that fail when conf is not
initialised is cfg.CONF.find_file.
And because some tests do special initialisation (ie: the ones that test
ceilometer.service.prepare_service stuff), the method cfg.CONF.find_file
works when we run all tests.

But if you decide to run only one test (like below) that use find_file it fail
because cfg.CONF is not initialised.

  tox -epy27,pep8 api.v2

Not all configurations opts are impacted but only the CLI opts ones that are
set only when cfg.CONF() is called.

This change initialise cfg.CONF on each test (but the test can
continue to reinitialise it if needed)

Change-Id: I37842e945a7e2908e17d5ce886e17047a36818f7
Merge "Change nose to testr in the documentation"
Merge "Add cleanup migration for indexes."
Merge "Fix missing foreign keys."
Merge "trailing slash in url causes 404 error"
Implementation of the alarm RPCAlarmNotifier

This change implement the RPCAlarmNotifier to allow
the threshold-evaluator to communicate with the notifier.

Change-Id: I1dd3b5aabe5221a37903a4e87de64702aec94ad2
Imported Translations from Transifex

Change-Id: I16320ea453995c625f62bbe2ce904e4b53572ac3
alarm: Global setting to disable ssl verification

Allow to disable the ssl server certificate verification when
the action url is a https request in the global configuration file:

 [alarm]
 rest_notifier_ssl_verify = False

Change-Id: I9f7301f4804f0a58d0ab8a21fecdaf3643547191
Blueprint: alarm-notifier
alarm: Per user setting to disable ssl verify

This allows the user to disable ssl verification via a query string
parameter in the action url.

example of action:
 https://unstrusted-ssl-host/?ceilometer-alarm-ssl-verify=0

Change-Id: I12294aa191ff4dfa5adaf2e24419bdfca70e8726
Blueprint: alarm-notifier