vmware-nsx/quantum/db/migration/alembic_migrations/versions
Akihiro MOTOKI c3fd3feba6 plugin/nec: Make sure resources on OFC is globally unique.
Fixes bug 1127664

Network cannot be created in NEC plugin when OFC network ID is
unique inside a tenant. Some OFC implmenetations generate a network
ID unique inside a tenant. In this case generated network IDs on can
be duplicated in system-wide. To fix it, this changes resource ID on
OFC to REST URI to make sure IDs on OFC globally unique.

Fixes bug 1120962

Make sure NEC plugin creates shared networks

In Quantum resource relationship is not limited inside a tenant.
E.g., a non-owner tenant can create a port on a shared network.
To deal with it the provider layer should not be aware of tenants
each resource belongs to even when it has a kind of tenant concept.

This commit changes ofc_manager to pass a parent resource for resource
creation and identify a resouce by REST URI used to access OFC resources.
It decouples Quantum resource access model from OFC resource models.
OFC IDs created before this commit are also looked up.

Primary keys of OFC ID mapping tables are changed to quantum_id because
most of all accesses to these mapping tables are done by quantum_id.
However the current version of alembic does not support changing primary
keys, so new OFC ID mapping tables for tenant, network, port and packet
filter are created. Dropping the previous mapping tables will be done
along with the data migration logic.

This commit also changes the following minor issues.
- Make sure ID on ProgrammableFlow OpenFlow controller (PFC) is less than
  32 chars. The current PFC accepts only 31 chars max as ID and 127 chars
  as a description string.
- Some database accesses created their own session and did not support
  subtransactions. Make sure to use context.session passed from the API layer.
- Removes Unused methods (update_network, update_port) in trema/pfc drivers.

Change-Id: Ib4bb830e5f537c789974fa7b77f06eaeacb65333
2013-02-18 17:40:35 +09:00
..
1b693c095aa3_quota_ext_db_grizzly.py Fix branch in db migration scripts 2013-01-29 22:51:35 +09:00
1d76643bcec4_nvp_netbinding.py Postgresql ENUM type requires a name exceptions NVP Plugin 2013-01-29 15:47:50 -08:00
2a6d0b51f4bb_cisco_plugin_cleanup.py Cisco plugin cleanup 2013-01-24 12:58:37 -05:00
3b54bf9e29f7_nec_plugin_sharednet.py plugin/nec: Make sure resources on OFC is globally unique. 2013-02-18 17:40:35 +09:00
3cb5d900c5de_security_groups.py Support iptables-based security group in NEC plugin 2013-02-14 07:37:52 +09:00
5a875d0e5c_ryu.py Add migration support to Quantum 2013-01-07 17:21:27 -08:00
48b6f43f7471_service_type.py Enforces generic sqlalchemy types in migrations. 2013-01-21 17:46:39 +00:00
54c2c487e913_lbaas.py Alembic migration script for Loadbalancing service 2013-02-13 15:37:58 +02:00
1149d7de0cfa_port_security.py Add NVP port security implementation 2013-01-28 18:45:44 -08:00
45680af419f9_nvp_qos.py Add Migration for nvp-qos extension 2013-02-17 13:36:27 -08:00
511471cc46b_agent_ext_model_supp.py Agent management extension 2013-02-18 11:43:45 +08:00
38335592a0dc_nvp_portmap.py L3 API support for nicira plugin 2013-02-11 05:19:04 -08:00
49332180ca96_ryu_plugin_update.py Improve data access method of ryu-agent 2013-02-01 16:57:06 +09:00
folsom_initial.py set allocation_pool_id nullable=False 2013-01-22 18:28:07 -05:00
README Add migration support to Quantum 2013-01-07 17:21:27 -08:00

This directory contains the migration scripts for the Quantum project.  Please
see the README in quantum/db/migration on how to use and generate new
migrations.