neutron/neutron/services
Rodolfo Alonso Hernandez 2614637a69 Delete segment RPs when network is deleted
When a network is deleted, only one Placement call per segment
is done to remove the associated (if existing) resource provider.

Before this patch, each time a subnet was deleted, the segment
resource provider was updated. When no subnets were present in the
related segment, the associated resource provider was deleted.

This optimization improves the network deletion time (see Launchpad
bug). E.g.: a network with two segments and ten subnets, the Neutron
server processing time dropped from 8.2 seconds to 4.4 seconds (note
that the poor performance was due to the modest testing environment).

Along with the segment RP optimization during the network deletion,
this patch also skips the router subnet update. Because all subnets
in the network are going to be deleted, there is no need to update
them during the network deletion process.

Change-Id: Ifd50027911a9ca3508e80e0de9a6cc45b67006cf
Closes-Bug: #1878916
(cherry picked from commit 7f40e626d6)
2020-05-26 17:04:49 +00:00
..
auto_allocate Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
conntrack_helper Conntrack Helper - Plugin 2019-08-29 10:41:04 +02:00
externaldns Fix designate driver not being fully region aware 2019-09-30 01:18:03 +00:00
flavors use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
l3_router Implement extension: extraroute-atomic 2019-09-11 13:58:47 +02:00
logapi use logapi constants from neutron-lib 2019-05-22 14:49:21 -06:00
loki use sqla functions from neutron-lib 2018-07-25 21:04:20 +00:00
metering Start using oslo_utils.netutils.is_ipv6_enabled() 2019-10-16 21:44:56 -04:00
network_ip_availability use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
network_segment_range Use segment range exceptions from neutron-lib 2019-05-02 07:03:30 +08:00
ovn_l3 [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase 2020-05-08 13:31:23 +00:00
placement_report Locate RP-tree parent by hypervisor name 2019-12-10 10:21:53 +01:00
portforwarding Add fip_pf_description extension to be supported by service plugin 2020-03-11 14:10:13 +00:00
qos Refactor OVN client QoS extension 2020-04-10 13:11:00 +00:00
rbac Neutron RBAC API and network support 2015-08-20 20:00:17 -07:00
revisions use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
segments Delete segment RPs when network is deleted 2020-05-26 17:04:49 +00:00
tag Implement tagging during bulk port creation 2020-01-28 18:23:37 -06:00
timestamp remove the neutron.db._model_query module 2019-01-25 08:55:25 -07:00
trunk Revert "Subcribe trunk & subport events to set subport id" 2020-04-01 14:06:40 +02:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
provider_configuration.py Merge "Select service_provider on the basis of service_module" 2018-11-15 12:47:09 +00:00
service_base.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00