blazar/contrib/devstack
Pablo Andres Fuente ce13bf6c5d Support for DB migrations using Alembic
Added support for DB migration using Alembic.
Modified devstack/lib/climate to sync the database during the
configuration of Climate.

Added the actual state of the sqlalchemy models in a migration script.
This will be the first version, and will be used by devstack and the
migration tests.

Added a new console_script to the setup.cfg: climate-db-manage. This is
the CLI is used as a wrapper of the alembic functionality.

Added alembic>=0.4.1 as dependecy.

Added some README with documentation about the DB migrations.

Change-Id: I390ccfac1e436db0b04339e60f9f6795b22b8f7e
Implements: blueprint schema-data-migration-with-alembic
2014-03-25 11:11:22 -03:00
..
extras.d Devstack : create the freepool used by reservation host plugin 2014-03-13 10:23:11 +01:00
lib Support for DB migrations using Alembic 2014-03-25 11:11:22 -03:00
README.rst Initial devstack support implemented 2014-02-18 12:38:17 -03:00

Devstack Integration

This directory contains the files necessary to integrate Climate with devstack.

To install:

$ DEVSTACK_DIR=.../path/to/devstack $ cp lib/climate ${DEVSTACK_DIR}/lib $ cp extras.d/70-climate.sh ${DEVSTACK_DIR}/extras.d

To configure devstack to run climate:

$ cd ${DEVSTACK_DIR} $ echo "enable_service climate" >> localrc $ echo "enable_service climate-a" >> localrc $ echo "enable_service climate-m" >> localrc