Alter models and add migration

We must have correct models i.e. models that correspond
a database schema to use sqlalchemy features.
Update models.py and add migration script to correct
database schema and get rid of the difference between
schema and models.

Partial-Bug: #1365436
Change-Id: I9b4571906d39bcdb35048caa58d16ad5e888cce4
Update glance.openstack.common.policy and cleanup

1. Sync glance.openstack.common.policy up to latest
version from oslo-inc.

2. Clean useless modules which depended by policy
module and pinned gettextutils module there. For
latter one, we are going to use glance.i18n instead.
 * jsonutils
 * strutils

docImpact

Closes-bug: #1288178
Closes-bug: #1387973
Partial-bug: #1381870
Change-Id: I84511ab1ee600e618985448dfbfbdc26cb130370
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Start server message changed

The way that the user message was generated when it's launched a
server providing a configuration file was causing an error. This is
because the Message class doesn't support concatenation.

Change-Id: I05d475049f96057b06d3ae14ec33e0125b9c4dd5
Closes-Bug: #1369390
Remove openstack.common.gettextutils module

Remove obsolete module from glance.

With the dependent change I84511ab1ee600e618985448dfbfbdc26cb130370,
Glance do not use obsolete modules from oslo-incubator anymore.

Closes bug: #1381870
Change-Id: I3c0441bcffffe671cf974dc7af14cbac66709d85
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Merge "Update glance.openstack.common.policy and cleanup"
Remove reliance on import order of oslo.db mods

This change fixes a couple of import statements that rely on some import
order and a bit of magic to make the oslo.db.options module visible
under the oslo.db package without importing it explicitly.

The old version of the imports relies on Python's import machinery to
attach sub-modules to packages after import (see
http://paste.openstack.org/show/148711/). It is safer to explicitly
import the module we need, to ensure that we are not relying on
side-effects of importing other modules to configure global state for
the application.

Change-Id: Ia2772030915061ff373e7b7dc77f161146b56e59
Use testr directly from tox

Invoking testr directly lets us pass arguments to it through tox so we
can, for example, only run a subset of the tests.

Change-Id: I21351880db0848b860e7c61d4a8c711be2a49de0
Merge "Alter models and add migration"
Merge "Start server message changed"
Merge "Remove reliance on import order of oslo.db mods"
Merge "Use testr directly from tox"
Merge "Remove openstack.common.gettextutils module"