neutron/neutron/db
Slawek Kaplonski afb359f371 [DVR] Related routers should be included if are requested
In case when related dvr router is configured by L3 agent, it is first
added to the tasks queue and then processed as any other router hosted
on the L3 agent.
But if L3 agent will ask neutron server about details of such router,
it wasn't returned back as this router wasn't really scheduled to the
compute node which was asking for it. It was "only" related to some
other router scheduled to this compute node. Because of that router's
info wasn't found in reply from the neutron-server and L3 agent was
removing it from the compute node.

Now _get_router_ids_for_agent method from the l3_dvrscheduler_db module
will check router serviceable ports for each dvr router hosted on the
compute node and will then find all routers related to it. Thanks to
that it will return routers which are on the compute node only because
of other related routers scheduled to this host and such router will not
be deleted anymore.

Change-Id: I689d5135b7194475c846731d846ccf6b25b80b4a
Closes-Bug: #1884527
(cherry picked from commit 38286dbd2e)
2020-07-10 13:30:47 +00:00
..
allowed_address_pairs Clean up deprecated sqla model import paths 2017-02-25 03:42:34 +00:00
availability_zone use is_extension_supported from neutron-lib 2018-03-12 09:28:52 -06:00
extra_dhcp_opt Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
metering use db utils from lib 2018-07-02 08:24:36 -06:00
migration Add Rocky milestone tag for alembic migration revisions 2020-05-14 03:39:16 +00:00
models Define orm relationships after db classes 2020-01-31 12:36:48 +01:00
network_dhcp_agent_binding OVO for NetworkDhcpAgentBinding 2017-09-08 15:48:00 +00:00
port_security Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
qos [L3][QoS] Neutron server side Floating IP QoS 2017-11-29 16:45:38 +08:00
quota Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
_model_query.py use db utils from lib 2018-07-02 08:24:36 -06:00
_resource_extend.py use make_weak_ref and resolve_ref from neutron-lib 2018-06-11 11:10:53 -06:00
_utils.py use db utils from lib 2018-07-02 08:24:36 -06:00
address_scope_db.py use db utils from lib 2018-07-02 08:24:36 -06:00
agents_db.py Make port binding attempt after agent is revived 2018-10-23 12:23:40 +02:00
agentschedulers_db.py Fix unscheduling fail when concurrent port delete 2018-06-09 02:58:20 +08:00
allowedaddresspairs_db.py use db utils from lib 2018-07-02 08:24:36 -06:00
api.py use sqla functions from neutron-lib 2018-07-25 21:04:20 +00:00
common_db_mixin.py use db utils from lib 2018-07-02 08:24:36 -06:00
data_plane_status_db.py Eliminate lookup of "resource extend" funcs by name 2017-04-21 14:48:42 -04:00
db_base_plugin_common.py Optimize DVR related port DB query 2020-03-31 05:58:36 +02:00
db_base_plugin_v2.py Merge "Get ports query: extract limit and use it only at the end." into stable/rocky 2019-05-04 20:08:17 +00:00
dns_db.py Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
dvr_mac_db.py Optimize DVR related port DB query 2020-03-31 05:58:36 +02:00
external_net_db.py Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
extradhcpopt_db.py Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00
extraroute_db.py l3 flavor: more events/notifications and callback priority 2018-05-18 00:14:33 +00:00
flavors_db.py use db utils from lib 2018-07-02 08:24:36 -06:00
ipam_backend_mixin.py Allow first address in an IPv6 subnet as valid unicast 2019-05-24 17:32:08 -04:00
ipam_pluggable_backend.py fixed_configured=True when Add/Remove port IPs 2019-10-09 09:36:57 +00:00
l3_agentschedulers_db.py Merge "Update _check_router_retain_needed()" 2018-07-20 05:14:29 +00:00
l3_attrs_db.py l3: don't begin db transaction in set_extra_attr_value 2018-02-07 23:50:47 +00:00
l3_db.py Remove Floating IP DNS record upon associated port deletion 2020-02-24 09:50:46 +00:00
l3_dvr_db.py [DVR] Don't populate unbound ports in router's ARP cache 2020-04-03 17:03:30 +02:00
l3_dvr_ha_scheduler_db.py Fix connection between 2 dvr routers 2018-11-13 22:10:15 +01:00
l3_dvrscheduler_db.py [DVR] Related routers should be included if are requested 2020-07-10 13:30:47 +00:00
l3_fip_port_details.py Add port_details to Floating IP 2018-04-25 17:16:03 +00:00
l3_fip_qos.py Refactor duplicated implementation of _get_policy_obj 2018-06-20 09:51:02 +08:00
l3_gwmode_db.py l3 flavor: more events/notifications and callback priority 2018-05-18 00:14:33 +00:00
l3_hamode_db.py Ensure dvr ha router gateway port binding host 2019-05-16 19:32:51 +00:00
l3_hascheduler_db.py Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
models_v2.py Allow to set/modify network mtu 2017-08-11 00:57:34 +00:00
network_ip_availability_db.py Add network ip availability filtered by project_id 2017-08-23 08:53:25 +08:00
portbindings_base.py use core resource attribute constants from neutron-lib 2017-06-30 06:25:36 -06:00
portbindings_db.py Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
portsecurity_db.py use core resource attribute constants from neutron-lib 2017-06-30 06:25:36 -06:00
portsecurity_db_common.py use db utils from lib 2018-07-02 08:24:36 -06:00
provisioning_blocks.py Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
quota_db.py Create packages for quota modules 2015-07-28 11:55:01 -07:00
rbac_db_mixin.py Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
rbac_db_models.py Bump network rev on RBAC change 2017-08-02 16:44:01 +00:00
securitygroups_db.py Filter by owner SGs when retrieving the SG rules 2020-04-15 07:34:18 +00:00
securitygroups_rpc_base.py Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
segments_db.py Convert Segment db model to OVO 2018-04-27 15:36:05 +00:00
servicetype_db.py Clean up deprecated sqla model import paths 2017-02-25 03:42:34 +00:00
sqlalchemytypes.py For typo in sqlalchemytypes 2017-02-13 16:18:46 +00:00
standard_attr.py Run revision bump operations en masse 2019-11-25 13:55:43 -05:00
standardattrdescription_db.py Eliminate lookup of "resource extend" funcs by name 2017-04-21 14:48:42 -04:00
subnet_service_type_mixin.py Renamed subnet_service_type_db_models module 2018-04-12 15:41:08 -07:00
tag_db.py Clean up deprecated sqla model import paths 2017-02-25 03:42:34 +00:00
vlantransparent_db.py use vlantransparent api def from neutron-lib 2018-02-20 07:43:03 +00:00