neutron/neutron/tests/unit/extensions
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
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py remove _setUpExtension 2018-09-17 12:51:51 +00:00
extendedattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
extensionattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
foxinsocks.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
test_address_scope.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
test_agent.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
test_availability_zone.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_data_plane_status.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_default_subnetpools.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_dns.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_expose_port_forwarding_in_fip.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_external_net.py use external net api def from lib 2017-10-30 11:16:33 -06:00
test_extra_dhcp_opt.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_extraroute.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_fip_port_details.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_flavors.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_floating_ip_port_forwarding.py Add fip_pf_description extension to be supported by service plugin 2020-03-11 14:10:13 +00:00
test_floatingip_pools.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_l3.py [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase 2020-05-08 13:31:23 +00:00
test_l3_ext_gw_mode.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_network_ip_availability.py Subnet gateway should be a valid IP 2019-12-23 10:13:23 +00:00
test_network_segment_range.py Fix resource schemas and releated `get_sorts` test cases 2019-05-28 18:27:22 +08:00
test_portsecurity.py Support for stateless security groups 2020-03-03 16:53:42 +01:00
test_providernet.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_qos_fip.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_qos_gateway_ip.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_quotasv2.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_quotasv2_detail.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00
test_router_availability_zone.py delete common_db_mixin 2019-04-17 11:25:41 -06:00
test_securitygroup.py Support for stateless security groups 2020-03-03 16:53:42 +01:00
test_segment.py Delete segment RPs when network is deleted 2020-05-26 17:04:49 +00:00
test_servicetype.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
test_subnet_dns_publish_fixed_ip.py Allow to select subnets to publish DNS records 2019-12-14 13:36:09 +00:00
test_subnet_onboard.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnet_service_types.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_subnetpool_prefix_ops.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_timestamp.py Handle already created objects in "test_update_timpestamp" 2019-08-27 16:20:38 +00:00
test_uplink_status_propagation.py remove the neutron.db._resource_extend module 2019-01-02 13:02:06 -07:00
test_vlantransparent.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00