From 8b67ee3d94a4866fd4ecd27e8fc37d2f17595aa9 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 12d5287758..6337d2a8cb 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