Comment 4 for bug 1417560

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/juno)

Reviewed: https://review.openstack.org/154381
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=9bb7eb5e1baed71e95f772474df9c6376563225b
Submitter: Jenkins
Branch: stable/juno

commit 9bb7eb5e1baed71e95f772474df9c6376563225b
Author: Jakub Libosvar <email address hidden>
Date: Tue Feb 3 14:33:39 2015 +0100

    Don't crash when adding duplicate gre allocation

    This patch catches DBDuplicateError when initializing ML2 GRE type
    driver and allocation already exists in DB. Because current allocations
    are queried and then only those that doesn't exist in database are
    added, DBDuplicateError should never occur.

    But the race can happen when running multiple neutron-servers and one
    of servers adds allocations between allocations are queried and added.

    Closes-bug: 1417560

    Conflicts:
     neutron/tests/unit/ml2/test_type_gre.py

    Change-Id: I427b7020d61b0d2c06292ff2804ba1f4483696c6
    (cherry picked from commit 50b469fae2dbd1517d856509f37328394e0697e4)