]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix Migration 50e86cb2637a and 38335592a0dc
authorAaron Rosen <aaronorosen@gmail.com>
Thu, 9 Jan 2014 21:49:10 +0000 (13:49 -0800)
committerAaron Rosen <aaronorosen@gmail.com>
Thu, 9 Jan 2014 23:19:38 +0000 (15:19 -0800)
commit251159c90a69dfb61d9927093d5eae41cd99e2a7
tree753e455ca37390bdae53505910de65574f4f085f
parent641e7c6214834c9379858ff4b7bb4f54569545b5
Fix Migration 50e86cb2637a and 38335592a0dc

When the rename of quantum->neutron occurred here ee3fe4e8 it also renamed
the the table creation from quantum_nvp_port_mapping to
neutron_nvp_port_mapping. This went undetected for a long time because
when neutron-server starts up it pushes down the scheme for tables that
are not there so the table would be created.

Because of this the following migration 50e86cb2637a called
op.rename_table('neutron_nvp_port_mapping', 'neutron_nsx_port_mappings')
though the table name being used was quantum_nvp_port_mapping. Because of this
the quantum_id->nvp_id mapping was never migrated over to the new table and
you would be left with a quantum_nvp_port_mapping table hanging around.

In addition, the downgrade would rename the table to neutron_nvp_port_mapping
instead of quantum_nvp_port_mapping. This patch addresses this issues.

Change-Id: I4f80b7b9dc56996ecd83826ee65918f5311c7c4f
Closes-bug: #1267619
neutron/db/migration/alembic_migrations/versions/38335592a0dc_nvp_portmap.py
neutron/db/migration/alembic_migrations/versions/50e86cb2637a_nsx_mappings.py