From 1a267ac38e02f6c69cdc70771b7367c8f87f0893 Mon Sep 17 00:00:00 2001 From: Zuul Date: Fri, 24 Apr 2020 10:35:40 +0000 Subject: [PATCH] Update git submodules * Update neutron from branch 'master' - Merge "Lock subnets during port creation and subnet deletion" - Lock subnets during port creation and subnet deletion The field "in_use" is added to "subnet" DB definition. This DB register column is a flag used to mark a register as in use by other transaction. When a write DB transaction writes any value on this field, the register is locked for any other concurrent transaction. If two DB transactions try to set this column at the same time, one of them will fail. This DB lock is implemented in "subnet" and is used during the subnet deletion and the port IP assignation, where all the port network subnets are retrieved to provide an IP address on the subnet CIDR. As reported in the related bug, it was possible to assign an IP to a port and, before the port creation command finished, delete the subnet where the IP belonged. This patch introduces this subnet lock during the IP assignation and at the beginning of the subnet deletion process. At the end of both transactions, the DB engine checks if the lock operation (write "in_use" column) is possible or the subnet register was already requested by other DB transaction. Change-Id: I45a724917389814e83400f5854ada175dfce2b7b Closes-Bug: #1865891 --- neutron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron b/neutron index 3793f1f388..0fab732485 160000 --- a/neutron +++ b/neutron @@ -1 +1 @@ -Subproject commit 3793f1f3888a85fc5e48c0e94e6a9f3c05e95c43 +Subproject commit 0fab732485dd9922ccbec54867f0d9fc2c34e205