Fix migration with fkeys

Creation of fkeys doesn't work in sqlite, so we should do these
changes in another dialects.
Fix bug 1204823.

Also we can have a problem with data conflicted with declared ForeignKey.
We should dump "bad" data to another place, upgrade and create FK.
Downgrade method should restore dumped data.

Change-Id: I33089d6f47dcde4cf716a3d303c8df23dd19cd07
Replace tests.base part4

It is the fourth step to replace using ceilometer.tests.base with
openstack.common.test.
In this patch is changed for using
openstack.common.test and added needed fixtures in
test classes.

Change-Id: I584db92369ecb8c787b1c669cdeb2ac7fe9ddfb3
Replace tests.base part5

It is the fifth step to replace using ceilometer.tests.base with
openstack.common.test.
In this patch is changed for using
openstack.common.test and added needed fixtures in
test classes.

Change-Id: Ic7bed465f499f8546b86899f3345001bd16a9193
enable sql metadata query

explode metadata key/values to their own tables/rows (based on type).
build a key string using dot notation similar to other nosql db
and filter based on that.

Blueprint: sqlalchemy-metadata-query
Related-Bug: #1093625

Change-Id: I2076e67b79448f98124a57b62b5bfed7aa8ae2ad
Don't use sqlachemy Metadata as global var

In up>down>up mode migrations are failing due to using of common MetaData.
It should be declared separatly for both of migration methods.

Change-Id: I594c649def9a269033463558ba2aa9313f817ee5
Related-Bug: #1240898
Imported Translations from Transifex

Change-Id: Iffa241f6a728b869131b7232ce8e5f8338eb83c1
Merge "Replace tests.base part4"
Merge "Replace tests.base part5"
Replace tests.base part6

It is the sixth step to replace using ceilometer.tests.base with
openstack.common.test.
In this patch is changed for using
openstack.common.test and added needed fixtures in
test classes.
Added in ceilometer.tests.db code from ceilomete.tests.base
because ceilometer.tests.base will not be used in the future.

Change-Id: I3cacca4eff19eae8874decd892ab1225f95cfee9
Replace tests.base part7

It is the next step to replace using ceilometer.tests.base with
openstack.common.test.
In this patch is changed for using
openstack.common.test and added needed fixtures in
test classes.

Change-Id: I691cb45bf591fbb1ab68eb1faca07f1772dcea0b
Replace tests.base part8

It is the last step to replace using openstack.common.test.
In this patch is changed for using
openstack.common.test and added needed fixtures in test classes.
Cleaning base.py and deleted TestCase class.

Change-Id: If4b5992de70fb01cf29363243fb7e50196653fff
Merge "Imported Translations from Transifex"
Allow Events without traits to be returned

Due to the join with Traits done in the SqlAlchemy implementation
of get_events, only Events with Traits can be returned from that
call. This would be expected behavior if Traits are provided in
the filter, but if no Traits are provided, all matching Events
should be returned. Even those without Traits.

The solution to this is to pre-populate the dictionary of Event
models before populating their Traits in the case of no Trait
filters being provided.

Change-Id: I4b0a5c20952f1dd5f2e2db631ffe1a14bd168fb3
Closes-Bug: #1245992
Fix the default rpc policy value

Before, each time a service that use ceilometer.publisher.rpc start this
annoying message appear because the default value is not the correct.

WARNING ceilometer.publisher.rpc [-] Publishing policy is unknown (wait) force to default
WARNING ceilometer.publisher.rpc [-] Publishing policy is unknown (wait) force to default

This patch set the correct default (to default inteads of wait), and check in tests
that the expected logger method is called.

Fixes bug #1245965

Change-Id: I41b9461359c7b0b17eb8e9dad1772bafdc3554fc
Fix the developer documentation of the alarm API

Add body parameter in PUT/POST alarm method.
Add boundary to the BoundedInt doc name.
Remove no more existing alarm_id in put/get_one wsexpose method.
Use state wsme enum instead of unicode string for alarm state get/put
even wsme validation won't work to have the documentation generated
correctly.

Update sphinxcontrib-pecanwsme to generate the documentation of get, put
and custom pecan method.

Change-Id: I9587f3d640cc768a3d788542d2af138411dcee60
Use consistant cache key for swift pollster

Change-Id: I7a3a8a7f80d1f6c39ba4da5ccef4122b4badc6ec
Use wsme ClientSideError to handle unicode string

We inherit from wsme.esc.ClientSideError to handle unicode string in
error message.

Fixes bug #1200518

Change-Id: I54a185a436b0a65bef13f303d7e31911cada76d8
Merge "Replace tests.base part6"
Merge "Don't use sqlachemy Metadata as global var"
Merge "Use consistant cache key for swift pollster"