Bug 1042336

Summary: [RFE][ceilometer]: Move sqlalchemy test_migrations and utils to common code
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/ceilometer/+spec/db-common-migration-and-utils
Whiteboard: upstream_milestone_none upstream_status_unknown upstream_definition_obsolete
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 17:40:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 21:47:41 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/ceilometer/+spec/db-common-migration-and-utils.

Description:

Ceilometer uses ceilometer/storage/sqlalchemy/models.py as python model of database.
But this model doesn't uses for creation of database. Migrations (migrate and alembic) in ceilometer/storage/sqlalchemy/[migrate_repo, alembic]/versions are used for this goal.
In fact we have a difference in models and migrations. Also migrations are tested in every component in OpenStack  test  and they should be checked by sync with models.

We should use one main concept in migrations testing.
From oslo should be used:
1) openstack/common/test.py ,
2) openstack/common/db/sqlalchemy/test_migrations.[py,conf]

Specification URL (additional information):

None