neutron/neutron/db
Ed Bak 96d472d732 Return from check_ports_exist_on_l3agent if no subnet found
The call to get_subnet_ids_on_router can return an empty list.
If the subnet_ids list is empty, the subsequent call to get
the ports on a subnet returns all ports.  If this occurs
when doing a remove_router_interface, the performance
of a remove_router_interface degrades significantly.  This change
returns immediately from check_ports_exist_on_l3agents if no
subnet is found.  A new unit test has been added to cover
the specific case of returning immediately without calling
get_ports when a remove_router_interface operation is performed.

This allows the DVR job on stable/juno to go back to normal.

Conflicts:
        neutron/tests/unit/test_l3_schedulers.py

Change-Id: I247d3bae152ab4f8ab7e00bd24d878eb08dca1ba
Closes-Bug: #1420032
Depends-On: I15bbf16fd4378c6431e9da8942d0968e7a012a91
(cherry picked from commit 760fe6a8fa)
2015-04-09 16:10:33 -07:00
..
firewall Stop admin using other tenants unshared rules 2014-09-22 22:14:51 -07:00
loadbalancer Reorder operations in create_vip 2014-08-19 05:32:44 +04:00
metering Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
migration Alter execute_alembic_command() to not assume all commands 2014-12-03 17:51:16 -08:00
vpn Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
agents_db.py Minor refactoring of auto_schedule_routers 2014-08-22 08:16:38 -07:00
agentschedulers_db.py Return no active network if the agent has not been learnt yet 2014-06-06 13:41:44 +00:00
allowedaddresspairs_db.py Allowed address pair: Removing check for overlap with fixed ips 2014-06-12 09:43:09 +08:00
api.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
common_db_mixin.py Revert "VPNaaS REST Client UT Broken" 2014-07-11 11:21:14 -07:00
db_base_plugin_v2.py Fix IP allocation for multiple slaac subnets 2015-01-22 12:07:13 +01:00
dvr_mac_db.py Fix DVR to service LBaaS VIP Ports 2014-08-26 06:43:12 -07:00
external_net_db.py Fix some typos in neutron/db and IBM SDN-VE plugin 2014-05-13 01:44:38 +00:00
extradhcpopt_db.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
extraroute_db.py l3_db: refactor L3_NAT_DB_mixin 2014-08-05 12:18:23 +09:00
l3_agentschedulers_db.py Return from check_ports_exist_on_l3agent if no subnet found 2015-04-09 16:10:33 -07:00
l3_attrs_db.py Add L3 VRRP HA base classes 2014-09-10 12:06:13 +00:00
l3_db.py Make prevent_l3_port_deletion handle missing port 2015-02-03 00:11:56 -08:00
l3_dvr_db.py Add database relationship between router and ports 2014-10-08 23:57:11 +00:00
l3_dvrscheduler_db.py DVR to delete router namespaces for service ports 2014-09-18 19:18:09 -07:00
l3_gwmode_db.py Allow reading a tenant router's external IP 2014-10-07 16:13:29 +00:00
l3_hamode_db.py Moves the HA resource creations outside of transaction 2014-12-25 10:37:43 +02:00
l3_hascheduler_db.py Add a new scheduler for the l3 HA 2014-09-12 16:22:28 +03:00
model_base.py Switch to using of oslo.db 2014-06-30 14:07:59 +03:00
models_v2.py Don't eagerly load ranges from IPAllocationPool 2015-03-27 18:04:39 +00:00
portbindings_base.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
portbindings_db.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
portsecurity_db.py Fix spelling mistakes 2014-08-01 16:10:23 +00:00
quota_db.py Removing vim header lines 2014-04-01 10:38:31 -04:00
routedserviceinsertion_db.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
routerservicetype_db.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
securitygroups_db.py Make listing security groups faster 2015-03-03 14:33:33 +00:00
securitygroups_rpc_base.py Fix IPv6 RA security group rule for DVR 2015-02-10 17:34:16 +00:00
servicetype_db.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
sqlalchemyutils.py Fix H302 violations in db package and services 2014-04-22 15:31:00 +02:00