From f529d86817f4022b798e045940dc0a4b5c88e857 Mon Sep 17 00:00:00 2001 From: Roman Podoliaka Date: Thu, 12 Dec 2013 08:20:15 +0200 Subject: [PATCH] Fix the migration adding a UC to agents table The migration script mistakenly assumes that all core plugins use agents extension, which is not true (e.g. plumgrid and bigswitch don't). Apply this migration script only for plugins that are stated in the original migration script adding agents table (511471cc46b_agent_ext_model_supp.py). Related-Bug: #1254246 Change-Id: I7915ef8d183782eb5d46ac47f45014aa9e9640fb --- .../1fcfc149aca4_agents_unique_by_type_and_host.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neutron/db/migration/alembic_migrations/versions/1fcfc149aca4_agents_unique_by_type_and_host.py b/neutron/db/migration/alembic_migrations/versions/1fcfc149aca4_agents_unique_by_type_and_host.py index 12d528775..6337d2a8c 100644 --- a/neutron/db/migration/alembic_migrations/versions/1fcfc149aca4_agents_unique_by_type_and_host.py +++ b/neutron/db/migration/alembic_migrations/versions/1fcfc149aca4_agents_unique_by_type_and_host.py @@ -28,7 +28,12 @@ revision = '1fcfc149aca4' down_revision = 'e197124d4b9' migration_for_plugins = [ - '*' + 'neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2', + 'neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2', + 'neutron.plugins.nicira.NeutronPlugin.NvpPluginV2', + 'neutron.plugins.nec.nec_plugin.NECPluginV2', + 'neutron.plugins.brocade.NeutronPlugin.BrocadePluginV2', + 'neutron.services.loadbalancer.plugin.LoadBalancerPlugin', ] from alembic import op -- 2.45.2