DB migration for ML2 VXLAN TypeDriver is incorrect

Bug #1213134 reported by Kyle Mestery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Kyle Mestery

Bug Description

The DB migration for ML2 VXLAN TypeDriver is incorrect. It currently defines both ip_address and udp_port as primary keys, but separately, which causes problems:

        sa.PrimaryKeyConstraint('ip_address'),
        sa.PrimaryKeyConstraint('udp_port')

This should be changed to:

        sa.PrimaryKeyConstraint('ip_address', 'udp_port')

Tags: db ml2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/42367

Changed in neutron:
status: Confirmed → In Progress
tags: added: db ml2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/42367
Committed: http://github.com/openstack/neutron/commit/f0b77aa053a2d5456d72d178d4fac8e2684cc111
Submitter: Jenkins
Branch: master

commit f0b77aa053a2d5456d72d178d4fac8e2684cc111
Author: Kyle Mestery <email address hidden>
Date: Fri Aug 16 09:19:25 2013 +0000

    Fix ML2 VXLAN TypeDriver DB migration

    The migration for the ML2 VXLAN TypeDriver was incorrectly setting
    primary key attributes on separate lines for 'ip_address' and
    'udp_port'. Also, a primary key cannot have autoincrement set, so
    add this to 'udp_port' as well.

    Fixes bug 1213134

    Change-Id: I0b2e2685bf524dd9c0333ac4511287ad6a5eb87e

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.