neutron/neutron/db/migration
Jesse Pretorius (odyssey4me) 30ba87e5e0 Revert "Log alembic migration script's output with oslo_log"
This reverts commit dffcf4b54a.

Prior to this patch, output to stdout would look as follows:

INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  Need to apply migrations from neutron contract branch. This will require all Neutron server instances to be shutdown before
  proceeding with the upgrade.

However, with this patch, now only the following shows up:

INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.

The message to notify the deployer to run migrations does not appear to be
present in any log files either.

The message and return code are used by deployment projects to determine
whether migrations must be run, for example:

e34b27e5ae/tasks/neutron_db_setup.yml (L59-L69)

Change-Id: I9c9959d4e8407cdc5f7a24a76a222b2bdfc87d4b
2018-12-20 12:45:49 +00:00
..
alembic_migrations [L3][QoS] Neutron server side router gateway IP QoS 2018-12-01 17:45:46 +08:00
models Merge "Relocate Agent DB model" 2016-10-10 16:33:55 +00:00
README Update the documentation link for doc migration 2017-07-22 18:46:13 +09:00
__init__.py Open Stein DB branch 2018-08-08 11:51:45 +03:00
alembic.ini Ease debugging alembic by passing proper scripts path in alembic.ini 2015-06-22 15:44:55 +02:00
autogen.py Fix flake8 N534 untranslated exception message 2018-10-19 15:46:04 -04:00
cli.py Revert "Log alembic migration script's output with oslo_log" 2018-12-20 12:45:49 +00:00
connection.py neutron-db-manage: add has_offline_migrations command 2016-01-22 13:55:40 +00:00

README

See doc/source/contributor/alembic_migrations.rst

Rendered at
https://docs.openstack.org/neutron/latest/contributor/alembic_migrations.html