]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix the migration adding a UC to agents table
authorRoman Podoliaka <rpodolyaka@mirantis.com>
Thu, 12 Dec 2013 06:20:15 +0000 (08:20 +0200)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:11 +0000 (15:20 +0800)
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

neutron/db/migration/alembic_migrations/versions/1fcfc149aca4_agents_unique_by_type_and_host.py

index 12d5287758c9ccb89ee0028b6f14fa43ccae9dd3..6337d2a8cbf554f4bed6693e34f58bd60d607d57 100644 (file)
@@ -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