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
Change resource.resource_metadata to text type

The existing resource.resource_metadata column size is 5k chars,
which is not enough for some large JSON metadata payload,
so change to as Text column to make sure store all JSON string
without truncating.

Fixes bug #1220683

Change-Id: Ide8c6b94f1ae56d76fe3d5b6238d44e498e67c03
Return 401 when action is not authorized

When a user is not authorized to access to something is the API,
this one return 401 instead of 400 now.

Fixes bug #1232045

Change-Id: I7ef8ed1f7cd40a845bcf860561c2cb7da52fb9e9
Remove extraneous vim configuration comments

Fixes bug # 1229324

Remove line containing

comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4

at the top of source code files, except for files in
ceilometer/openstack/common and bin/ceilometer-rpc-zmq-receiver

Change-Id: Ic8643afbc3510c36c41871b8a840a9b9e21eaba7
Add notifications for alarm changes

Changes in alarm state (including definition and deletion) now
emit notifications.

Change-Id: I55799d6f00e6832c1d7ffb736f97d3dfcbe801aa
Start Icehouse development

Change-Id: I3d3f4d7c1e5f98989576b56b666d3191a961dbf1
db2 does not allow None as a key for user_id in user collection

mongodb allows None value as a key for _id field, but db2 does not.
this patch will fix the problem when meters coming with user_id
being set to None.

Change-Id: If48e5117198f3e9ad834e4f7fa58ec27c57a8bc8
fixes: bug #1234165
Merge "Start Icehouse development"
Merge "db2 does not allow None as a key for user_id in user collection"
Merge "Return 401 when action is not authorized"
add more test cases to improve the test code coverage #4

In this patch, the following module test coverage improved to 100%

ceilometer/alarm/evaluator/__init__

Since the module defines an abstract class, it is important to
change the abstract method body from using "pass" to comments so
that the test coverage can possibly to be ushed to 100%. If the
abstract method body is the "pass" statement, then the test code
coverage can not be possibly 100% since abstract class can not
be instantiated, thus can not be tested.

Change-Id: Icaac1e45a695544d9c22fd5d20b79616d2e4d504
Imported Translations from Transifex

Change-Id: Ie048a42c172ce75a466bec2ddef9110e4dc0b3cb
Update python-ceilometerclient lower bound to 1.0.6

Corresponding global-requirements change proposed here:

  https://review.openstack.org/49696

Change-Id: Ibc41db3ca2651711dbe9e68f33441a0f1467f9e7
add more test cases to improve the test code coverage #6

In this patch, the following module test coverage improved to 100%

ceilometer/alarm/rpc

Change-Id: Ica3efb37799400460125bd9aa61c575e211bdd4b
Merge "Add notifications for alarm changes"
Merge "Remove extraneous vim configuration comments"
Merge "add more test cases to improve the test code coverage #4"
Merge "add more test cases to improve the test code coverage #6"
Apply six for metaclass

__metaclass__ cannot be used in python3.
six be used in general for python 3 compatibility.

Change-Id: I1d9909d70bb614c9d1c336d0c492027f5b6b5088
Closes-Bug: #1236648
Ensure combination alarm evaluator can be loaded

Fixes bug 1237578

Previously combination alarms were always skipped as the evaluator
was missing from the loadable stevedore extensions.

Change-Id: I9d164fb2a89ee9931fc032d93ad4a26ba6887f0b