Comment 2 for bug 1470625

Revision history for this message
Henry Gessau (gessau) wrote : Re: Mechanism to register and run all external alembic migrations automatically

I need to make a decision about how the neutron-db-manage script will behave when sub-projects are installed that register their migration scripts.

Previously, neutron-db-manage (henceforth abbreviated to 'ndbm') would run the command against only one project:

ndbm upgrade head # upgraded core neutron branch only
ndbm --service lbaas upgrade head # upgraded neutron-lbaas branch only

Now we need to support installed services and sub-projects that register their migration script locations, so ndbm can discover them and run all branches by default. Let's say lbaas and networking-l2gw are installed:

ndbm upgrade head # upgrade neutron, neutron-lbaas and networking-l2gw branches
ndbm --service lbaas upgrade head # upgrade neutron-lbaas branch only
ndbm --subproject networking-l2gw upgrade head # upgrade networking-l2gw branch only
ndbm --neutron_only upgrade head # upgrade core neutron branch only