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.
Reviewed: https:/ /review. openstack. org/154381 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=9bb7eb5e1ba ed71e95f772474d f9c6376563225b
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 9bb7eb5e1baed71 e95f772474df9c6 376563225b
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: tests/unit/ ml2/test_ type_gre. py
neutron/
Change-Id: I427b7020d61b0d 2c06292ff2804ba 1f4483696c6 17d856509f37328 394e0697e4)
(cherry picked from commit 50b469fae2dbd15