Load tables of service plugins when migration auto generation
When we run "neutron-db-manage revision --autogenerate", it detects table deletion of service plugins even when they are configured. We need to load tables of service plugins to teach alembic such tables exist. Change-Id: I9186d36496069c8253683bd200326b80a6565fa6 Closes-Bug: #1218338
This commit is contained in:
parent
7753ce5fc3
commit
55bfb412f1
@ -40,7 +40,8 @@ plugin_class_path = neutron_config.core_plugin
|
||||
active_plugins = [plugin_class_path]
|
||||
active_plugins += neutron_config.service_plugins
|
||||
|
||||
plugin_klass = importutils.import_class(plugin_class_path)
|
||||
for class_path in active_plugins:
|
||||
importutils.import_class(class_path)
|
||||
|
||||
# set the target for 'autogenerate' support
|
||||
target_metadata = model_base.BASEV2.metadata
|
||||
|
Loading…
Reference in New Issue
Block a user