When remove l2gw connection, can not remove vlan binding in neutron db when binding vlan is zero
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-l2gw |
Fix Released
|
Undecided
|
fanghuilin |
Bug Description
When remove l2gw connection, can not remove vlan binding in neutron db when binding vlan is zero. And then, it cannot
create this l2gw connection again.
Step1: At first, no l2gw connection exist
# openstack l2gw list
+------
| ID | Tenant | Name | Devices |
+------
| 67eb8390-
+------
# openstack l2gw connection list
Step2: create l2gw connection
# openstack l2gw connection create --default-
+------
| Field | Value |
+------
| ID | 5f221b47-
| L2 GateWay ID | 67eb8390-
| Network ID | 318ee112-
| Segmentation ID | 0 |
| Tenant | 02c0f9589cca400
+------
Step3: Get info from neutron db
logical_switches
+------
| uuid | name | key | ovsdb_identifier |
+------
| b17aab90-
vlan_bindings
+------
| port_uuid | vlan | logical_switch_uuid | ovsdb_identifier |
+------
| f38b77ec-
+------
Step4: delete l2gw connection
# openstack l2gw connection delete 5f221b47-
L2 Gateaway Connection 5f221b47-
Step5: Get info from neutron db, there have vlan bindings info left over
logical_switches
+------
| uuid | name | key | ovsdb_identifier |
+------
| b17aab90-
vlan_bindings
+------
| port_uuid | vlan | logical_switch_uuid | ovsdb_identifier |
+------
| f38b77ec-
+------
Step6: create l2gw connection again, it cannot create.
# openstack l2gw connection create --default-
Duplicate segmentation ID for the interface name=Ten-
Neutron server returns request_ids: ['req-23c19d6c-
Changed in networking-l2gw: | |
assignee: | nobody → fanghuilin (fanghuilin1987) |
status: | New → In Progress |
Fix proposed to branch: master /review. opendev. org/735285
Review: https:/