neutron/neutron/tests/unit/extensions
Rodolfo Alonso Hernandez 415755015a 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.

Conflicts:
    neutron/db/db_base_plugin_v2.py

Change-Id: Ifd50027911a9ca3508e80e0de9a6cc45b67006cf
Closes-Bug: #1878916
(cherry picked from commit 7f40e626d6)
(cherry picked from commit 2614637a69)
2020-05-26 17:09:31 +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 Relax subnet pool network affinity constraints 2019-07-31 10:01:55 -05: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 Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04: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 use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06: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 use context manager from neutron-lib 2018-10-24 07:18:46 -06:00
test_floating_ip_port_forwarding.py Add dependency for service plugin 2019-02-16 00:17:53 +08:00
test_floatingip_pools.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_l3.py Implement Floating IP association logic only once 2019-09-15 16:23:26 +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 Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +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 Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04: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 Fix assertEqual argument ordering in test_securitygroup.py 2019-07-16 11:41:18 -04:00
test_segment.py Delete segment RPs when network is deleted 2020-05-26 17:09:31 +00:00
test_servicetype.py Remove Neutron LBaaS 2019-09-20 07:46:06 +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 use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00