Fail to remove l2gw connection When Ucast_Macs_Remote table have multi records with the same mac and same logical switch.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-l2gw |
In Progress
|
Undecided
|
fanghuilin |
Bug Description
Fail to remove l2gw connection When Ucast_Macs_Remote table have multi records with the same mac and same logical switch. When exist port has allow address pair config before create l2gw connection, it will happen this failure.
Step 1: Create two ports, set one port with allow address pair of another port.
openstack port create --network 318ee112-
# 172.31.10.206 set it's allow address pair with 172.31.10.120
openstack port set --allowed-address ip-address=
Step 2: Create a l2gw connection, then I can see there will have multi records with the same mac and same logical switch in Ucast_Macs_Remote table.
openstack l2gw connection create --default-
Step 3: Look at here, 172.31.10.206 and 172.31.10.120 will have the same mac of fa:16:3e:64:bf:d2
Ucast_Macs_Remote table
MAC _uuid ipaddr locator logical_switch
------------------- -------
"6c:92:bf:91:87:3d" 7de6c64d-
"fa:16:3e:0f:1a:f4" 8aab4bbb-
"fa:16:3e:1d:2a:58" d524971e-
"fa:16:3e:22:bd:9d" 70146bc5-
"fa:16:3e:34:52:48" 7e90082e-
"fa:16:3e:4a:f0:14" 5ed49c2e-
"fa:16:3e:64:bf:d2" 13d4bed0-
"fa:16:3e:64:bf:d2" ab289528-
"fa:16:3e:89:a4:17" 9a1823e3-
"fa:16:3e:b0:b1:42" f4a5e0d6-
"fa:16:3e:b1:8f:bb" 5e1d0233-
"fa:16:3e:ed:10:15" 7a51d481-
"fa:16:3e:f1:1a:ed" 6eb28a15-
"fa:16:3e:f3:56:97" ebe3a8ed-
"fa:16:3e:f4:77:01" 5ef69816-
Step 4: Remove l2gw connection, the command will fail.
# openstack l2gw connection delete 3d0ac3fa-
Failed to delete L2 Gateway Connection with name or ID '3d0ac3fa-
Neutron server returns request_ids: ['req-add638c3-
Failed to delete 1 of 1 L2 Gateway Connection.
2020-06-18 18:49:18.256 178014 ERROR neutron.
Changed in networking-l2gw: | |
status: | New → In Progress |
assignee: | nobody → fanghuilin (fanghuilin1987) |
Thanks for the bug report, I have some time this week to verify your reproduction steps