ad3f7a8b7d69c2f5612d04b08f7250a21c4488f9
Delete the DVR port record on the node when the router is deleted from the node. This patch fixes an issue where the DB actions have no context writer which will actually update nothing duing the following `delete_distributed_port_binding_if_stale`. As well as fixing that when the dvr router was deleted from a node, only the ml2_distributed_port_bindings were cleaned up and not the ml2_port_binding_levels records for the dvr port. Remove the last VM under one router in one host, the ml2_distributed_port_bindings and ml2_port_binding_levels will remain the record. So if VMs under one router had spread on many hosts, and router (router ports) still exists, even there is only one VM under it, the binding entries will still be equal to amount of hosts where this router resided before. The result is a large amount of redundant data in the database, even if some nodes are no longer in the cluster, there are still records for that node. Closes-Bug: #1976439 Change-Id: I320ac2306e0f25ff933d8271203e192486062d61
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:
https://docs.openstack.org/neutron/latest/contributor/contributing.html
Get in touch via email. Use [Neutron] in your subject.
Description
Languages
Python
99.7%
Shell
0.3%