From: Roman Podoliaka Date: Thu, 12 Dec 2013 06:20:15 +0000 (+0200) Subject: Fix the migration adding a UC to agents table X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f529d86817f4022b798e045940dc0a4b5c88e857;p=openstack-build%2Fneutron-build.git 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 --- 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