From: Ivar Lazzaro Date: Mon, 3 Mar 2014 19:29:17 +0000 (-0800) Subject: Embrane Plugin fails alembic migrations X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=873b51e4914b8fa2d2e6d7c8349db32bc1b937f0;p=openstack-build%2Fneutron-build.git Embrane Plugin fails alembic migrations Alembic migration from revision f44ab9871cd6 to 2eeaf963a447 is failing on Embrane Plugin because the floatingips table doesn't exist. The problem happens because the plugin is actually inheriting from OVS's Plugin, and therefore it doesn't take part of the correct migration path at installation time. As far as I have investigated, adding the support on ext_gw_mode and l3_support is enough to solve the problem. Change-Id: Ide740df34d06d87fab50cf6468c5d753cb46f112 Closes-bug: 1287330 --- diff --git a/neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py b/neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py index 9fc53cca9..5070c0a82 100644 --- a/neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py +++ b/neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py @@ -40,7 +40,8 @@ migration_for_plugins = [ 'neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2', 'neutron.plugins.ryu.ryu_neutron_plugin.RyuNeutronPluginV2', 'neutron.plugins.vmware.plugin.NsxPlugin', - 'neutron.plugins.vmware.plugin.NsxServicePlugin' + 'neutron.plugins.vmware.plugin.NsxServicePlugin', + 'neutron.plugins.embrane.plugins.embrane_ovs_plugin.EmbraneOvsPlugin' ] from alembic import op diff --git a/neutron/db/migration/alembic_migrations/versions/2c4af419145b_l3_support.py b/neutron/db/migration/alembic_migrations/versions/2c4af419145b_l3_support.py index 4499c4aee..40b53d499 100644 --- a/neutron/db/migration/alembic_migrations/versions/2c4af419145b_l3_support.py +++ b/neutron/db/migration/alembic_migrations/versions/2c4af419145b_l3_support.py @@ -37,6 +37,7 @@ migration_for_plugins = [ 'neutron.plugins.nicira.NeutronServicePlugin.NvpAdvancedPlugin', 'neutron.plugins.vmware.plugin.NsxPlugin', 'neutron.plugins.vmware.plugin.NsxServicePlugin', + 'neutron.plugins.embrane.plugins.embrane_ovs_plugin.EmbraneOvsPlugin' ] from neutron.db import migration