neutron/neutron/db/migration/alembic_migrations/versions
Li Ma fbc6b991a7 Race condition of L3-agent to add/remove routers
This race condition happens when repeatedly calling
l3-agent-router-add and l3-agent-router-remove
by different neutron-servers at the same time.

The primary key constraint is added for the pair of
(router_id and l3_agent_id).

During migration, verification is done if the current
records violate the PK constraint defined in this bug
fix, and sanitize the data before schema modification.

Due to different dialects of database engines, different
sql statements are executed correspondingly to do
the verification.

Change-Id: Ia541e023b757b2e77c4eec9bb1670632c7a271fa
Closes-Bug: #1230323
2014-07-29 01:52:18 -07:00
..
1b693c095aa3_quota_ext_db_grizzly.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1b837a7125a9_cisco_apic_driver.py Cisco APIC ML2 mechanism driver, part 1 2014-04-25 09:20:39 -04:00
1b2580001654_nsx_sec_group_mappin.py DB Mappings for NSX security groups 2014-02-26 17:29:48 -08:00
1c33fa3cd1a1_extra_route_config.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1d6ee1ae5da5_db_healing.py Database healing migration 2014-07-15 15:22:26 +04:00
1d76643bcec4_nvp_netbinding.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1e5dd1d09b22_set_not_null_fields_lb_stats.py Restore NOT NULL constraint lost by earlier migrations 2014-04-01 10:44:25 +04:00
1efb85914233_allowedaddresspairs.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1fcfc149aca4_agents_unique_by_type_and_host.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
2a3bae1ceb8_nec_port_binding.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
2a6d0b51f4bb_cisco_plugin_cleanup.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
2c4af419145b_l3_support.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
2db5203cb7a9_nuage_floatingip.py Floatingip extension support for nuage plugin 2014-06-10 23:13:47 -07:00
2eeaf963a447_floatingip_status.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3a520dd165d0_cisco_nexus_multi_switch.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3b54bf9e29f7_nec_plugin_sharednet.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3c6e57a23db4_add_multiprovider.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3cabb850f4a5_table_to_track_port_.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3cb5d900c5de_security_groups.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3cbf70257c28_nvp_mac_learning.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3d3cb89d84ee_nsx_switch_mappings.py Rename DB models and related resources for VMware NSX plugin 2014-02-25 05:43:11 -08:00
3d6fae8b70b0_nvp_lbaas_plugin.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3d2585038b95_vmware_nsx.py Rename DB models and related resources for VMware NSX plugin 2014-02-25 05:43:11 -08:00
3ed8f075e38a_nvp_fwaas_plugin.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
4a666eb208c2_service_router.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
4ca36cfc898c_nsx_router_mappings.py Add missing comma in nsx router mappings migration 2014-04-05 18:10:52 -04:00
4eca4a84f08a_remove_ml2_cisco_cred_db.py Fix incorrect usage of sa.String() type 2014-04-24 15:34:45 +04:00
5a875d0e5c_ryu.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
5ac1c354a051_n1kv_segment_alloc.py Fix segment allocation tables in Cisco N1kv plugin 2014-03-21 20:39:04 -07:00
5ac71e65402c_ml2_initial.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
6be312499f9_set_not_null_vlan_id_cisco.py Cisco: Set correct nullable for switch_ip, instance_id, vlan_id 2014-04-22 16:30:41 +04:00
8f682276ee4_ryu_plugin_quota.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
10cd28e692e9_nuage_extraroute.py Extraroute extension support for nuage plugin 2014-05-22 17:35:55 -07:00
11c6e18605c8_pool_monitor_status_.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
13de305df56e_add_nec_pf_name.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
14f24494ca31_arista_ml2.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
20ae61555e95_ml2_gre_type_driver.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
24c7ea5160d7_cisco_csr_vpnaas.py VPNaaS Service Driver for Cisco CSR 2014-03-05 15:08:39 -05:00
27cc183af192_ml2_vnic_type.py Remove import extension dep from db migration 2014-02-26 13:24:55 -05:00
27ef74513d33_quota_in_plumgrid_pl.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
31d7f831a591_add_constraint_for_routerid.py Race condition of L3-agent to add/remove routers 2014-07-29 01:52:18 -07:00
32a65f71af51_ml2_portbinding.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
32b517556ec9_remove_tunnelip_mode.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
33c3db036fe4_set_length_of_description_field_metering.py Fix migration that breaks Grenade jobs 2014-04-21 17:14:16 +04:00
33dd0a9fa487_embrane_lbaas_driver.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
35c7c198ddea_lbaas_healthmon_del_status.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
37f322991f59_nuage_removing_mapping_tables.py Changes to remove the use of mapping tables from Nuage plugin 2014-07-24 11:26:57 -07:00
38fc1f6789f8_cisco_n1kv_overlay.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
39cf3f799352_fwaas_havana_2_model.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
40b0aff0302e_mlnx_initial.py Fix missing migration default value 2014-07-08 09:52:01 +00:00
40dffbf4b549_nvp_dist_router.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
46a0efbd8f0_cisco_n1kv_multisegm.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
48b6f43f7471_service_type.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
49f5e553f61f_ml2_security_groups.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
50d5ba354c23_ml2_binding_vif_details.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
50e86cb2637a_nsx_mappings.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
51b4de912379_cisco_nexus_ml2_mech.py ML2 Mechanism Driver for Cisco Nexus 2013-09-04 14:10:33 -04:00
52c5e4a18807_lbaas_pool_scheduler.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
52ff27f7567a_support_for_vpnaas.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
53bbd27ec841_extra_dhcp_opts_supp.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
54c2c487e913_lbaas.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
54f7549a0e5f_set_not_null_peer_address.py Restore NOT NULL constraint lost by earlier migrations 2014-04-01 10:44:25 +04:00
63afba73813_ovs_tunnelendpoints_id_unique.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
66a59a7f516_nec_openflow_router.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
81c553f3776c_bsn_consistencyhashes.py Add missing DB migrations for BSN ML2 plugin 2014-03-31 22:29:12 -07:00
86cf4d88bd3_remove_bigswitch_por.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
128e042a2b68_ext_gw_mode.py Fix missing migration default value 2014-07-08 09:52:01 +00:00
157a5d299379_ml2_binding_profile.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
176a85fc7d79_add_portbindings_db.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
338d7508968c_vpnaas_peer_address_.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
477a4488d3f4_ml2_vxlan_type_driver.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
492a106273f8_brocade_ml2_mech_dri.py Implementaion of Mechanism driver for 2014-03-04 15:31:36 -08:00
557edfc53098_new_service_types.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
569e98a8132b_metering.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1064e98b7917_nec_pf_port_del.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1149d7de0cfa_port_security.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
1341ed32cc1e_nvp_netbinding_update.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
2032abe8edac_lbaas_add_status_des.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
2447ad0e9585_add_ipv6_mode_props.py Use different name for the same constraint 2014-03-20 10:26:37 +08:00
2528ceb28230_nec_pf_netid_fix.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
3927f7f7c456_l3_extension_distributed_mode.py Add L3 Extension for Distributed Routers 2014-07-16 07:33:43 -07:00
4692d074d587_agent_scheduler.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
5446f2a45467_set_server_default.py Fix incorrect default paramater in migration 2014-07-15 14:27:16 +04:00
5918cbddab04_add_tables_for_route.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
19180cf98af6_nsx_gw_devices.py NSX: Ensure gateway devices are usable after upgrade 2014-03-17 15:43:53 +01:00
45680af419f9_nvp_qos.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
263772d65691_cisco_db_cleanup_2.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
363468ac592c_nvp_network_gw.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
511471cc46b_agent_ext_model_supp.py Add BSN plugin to agent migration script 2014-07-10 21:43:05 -07:00
538732fa21e1_nec_rename_quantum_id_to_neutron_id.py NEC plugin: Rename quantum_id column to neutron_id 2014-03-22 06:30:13 +09:00
1421183d533f_nsx_dhcp_metadata.py Rename DB models and related resources for VMware NSX plugin 2014-02-25 05:43:11 -08:00
2026156eab2f_l2_dvr_models.py L2 Model additions to support DVR 2014-07-17 07:53:14 -07:00
38335592a0dc_nvp_portmap.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
49332180ca96_ryu_plugin_update.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
117643811bca_nec_delete_ofc_mapping.py NEC plugin: delete old OFC ID mapping tables 2014-03-06 08:29:52 +00:00
HEAD Race condition of L3-agent to add/remove routers 2014-07-29 01:52:18 -07:00
README Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
abc88c33f74f_lb_stats_needs_bigint.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
b7a8863760e_rm_cisco_vlan_bindin.py Fix incorrect downgrade 2014-07-21 16:30:23 +04:00
b65aa907aec_set_length_of_protocol_field.py Set correct columns' length 2014-04-08 14:35:51 +04:00
c88b6b5fea3_cisco_n1kv_tables.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
d06e871c0d5_set_admin_state_up_not_null_ml2.py Ml2: Set correct nullable for admin_state_up 2014-04-22 16:05:08 +04:00
e6b16a30d97_cisco_provider_nets.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
e766b19a3bb_nuage_initial.py Nuage Networks Plugin 2014-02-28 14:22:42 -08:00
e197124d4b9_add_unique_constrain.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
ed93525fd003_bigswitch_quota.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
f44ab9871cd6_bsn_security_groups.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
f489cf14a79c_lbaas_havana.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
f9263d6df56_remove_dhcp_lease.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
fcac4c42e2cc_bsn_addresspairs.py BigSwitch: Add address pair support to plugin 2014-03-03 10:25:25 +00:00
folsom_initial.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
grizzly_release.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
havana_release.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
icehouse_release.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00

README

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