Bug 1042336 - [RFE][ceilometer]: Move sqlalchemy test_migrations and utils to common code
Summary: [RFE][ceilometer]: Move sqlalchemy test_migrations and utils to common code
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/ceil...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 21:47 UTC by RHOS Integration
Modified: 2015-07-22 17:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:40:42 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.