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
Call alembic migrations after sqlalchemy-migrate

Removed version parameter from storage.upgrade method since it was never
used and partial upgrade is not supported by the code base

Removed downgrade call from db_sync since it's never used

Implements blueprint convert-to-alembic

Change-Id: I2aeabc111e5d3728fdcd0df45bf56f0aa68ed199
Make middleware.py Python 2.6 compatible

Fixes bug 1206256

In Python 2.6 xml.etree.ElementTree.fromstring raises
xml.parsers.expat.ExpatError instead of
xml.etree.ElementTree.ParseError when faced with invalid xml.
This change catches an import error and uses ExpatError instead of
ParseError.

Change-Id: I8ab41328c8eeacc28f4e01d730c73ff251df4a25
Fix Hacking 0.6 warnings

This patch fixes missing License headers, License header mismatches
and locals() being used in string formatting operations.

Change-Id: I721700fda746e78d36d29d0ed64bfeab61755fb3
Update openstack.common

Change-Id: Ib9dfbcf3f08b20671aadd76f8789d9a9e72fd2eb
Merge "Make middleware.py Python 2.6 compatible"
Fix transformer's LOG TypeError

When transform cpu meter to cpu_util at first time, it will raise
TypeError by LOG counter argument.

Change-Id: Ie0915d2a4e51cd35a018339dca9700bb8c56ec80
Fixs: bug #1206816
Merge "Update openstack.common"
Fix notify method signature on LogAlarmNotifier

Otherwise notification on alarms with the 'log://' style
of action will fail due to the additional self arg.

Change-Id: Iae0dbad2232a27180091f9bc4c1f69430f48b5ea
add unit attribute to statistics

statistics currently aren't associated with a unit it just
provides sum, average, etc... values without a unit context

Fixes: Bug#1204458
Change-Id: Ib92a6a2ab5899a0b269424e94468a73b6559deda
Merge "Fix Hacking 0.6 warnings"
Merge "Fix notify method signature on LogAlarmNotifier"
Add support for CA authentication in Keystone

Change-Id: Ida2240b5217509cbd4116b4d468848760354be18
Fixes: bug #1194046
objectstore: trivial cleanup in _Base

The _iter_accounts() method should use self.CACHE_KEY_HEAD instead of the
currently hardcoded "swift.head_account".

Change-Id: Ie95e1f2875be3680bb76c209dabd8c91f5d78234
Merge "Call alembic migrations after sqlalchemy-migrate"
Update nova_client.py

In nova_client.py:Client:__init__, there is already a variable
for conf: conf = cfg.CONF.service_credentials, so we can replace
all cfg.CONF.service_credentials to conf for this function

Change-Id: I74ac9cde00af00457b026fd13a43af6a2bf88ad0
Doc: measurements: add doc on Cinder/Swift config

Some meters need Cinder/Swift to be configured in a particular fashion to work.
Add links to the configuration bits regarding Cinder and Swift.

Change-Id: I68a605e5152fc3d15bb06f63066edd5390a2dfa7
Merge "objectstore: trivial cleanup in _Base"
Add pagination support for MongoDB

Paginate db query result of MongoDB.
The query methods support pagination include
get_resources, get_meters, get_alarms.
It is a part of blueprint paginate-db-search.

Implements blueprint paginate-db-search

Change-Id: Id9162782a6c96b4bb0ed04d828791b8b1b1379d4
Rename get_counters to get_samples

Now counter has been renamed to sample, so it is better that
we update the function get_counters to get_samples.

Implements part of blueprint remove-counter

Change-Id: I908ea347f8d0fd4b5ef4b76eee6de98da5d2e0ca