neutron/neutron
Ihar Hrachyshka 876e1d7969 ovs: raise RuntimeError in _get_dp if id is None
If the switch misbehaves, we may receive None from db_get_val. In this
case, int() on the return value will raise TypeError which is not
expected by callers and may result in ovs agent crash.

Instead of bubbling up the TypeError exception, we raise RuntimeError if
datapath id is None.

Change-Id: I53bea00b9a7302d694b8066e969c894bf64cb2d4
Closes-Bug: #1731494
(cherry picked from commit 38d0b2b52d)
2019-03-21 16:07:03 -07:00
..
agent ovsfw: Update SG rules even if OVSFW Port is not found 2019-03-20 12:55:51 +04:00
api Block port update from unbound DHCP agent 2019-02-05 13:39:00 +01:00
callbacks Merge "service: add callback AFTER_SPAWN" 2017-05-20 09:09:12 +00:00
cmd Secure dnsmasq process against external abuse 2019-01-25 13:58:43 +00:00
common Always fill UDP checksums in DHCPv6 replies 2019-02-01 23:25:18 +00:00
conf [OVS] Add mac-table-size to be set on each ovs bridge 2018-06-20 18:17:21 +00:00
core_extensions Fix default qos policy when creating network 2017-08-24 14:35:38 +00:00
db Fix notification about arp entries for dvr routers 2019-02-15 16:03:53 +00:00
debug Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
extensions Only allow SG port ranges for whitelisted protocols 2018-05-11 00:24:34 +02:00
hacking hacking: Remove dead code 2017-07-19 13:43:44 +02:00
ipam Reduce IP address collision during port creating 2018-07-20 10:35:49 +00:00
locale Imported Translations from Zanata 2017-07-18 08:36:04 +00:00
notifiers Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
objects Fix performance regression adding rules to security groups 2019-02-01 21:10:21 -07:00
pecan_wsgi Dont log about skipping notification in normal case 2017-09-23 20:14:57 +00:00
plugins ovs: raise RuntimeError in _get_dp if id is None 2019-03-21 16:07:03 -07:00
privileged Add capabilities for privsep 2018-10-29 19:42:15 +00:00
quota CountableResource: try count/get functions for all plugins 2017-09-12 16:23:22 +00:00
scheduler Avoid redundant HA port creation during migration 2017-09-11 19:56:19 +00:00
server Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
services Do not delete trunk bridges if service port attached 2018-12-17 12:19:38 +00:00
tests ovs: raise RuntimeError in _get_dp if id is None 2019-03-21 16:07:03 -07:00
__init__.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
_i18n.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Do not load default service plugins if core plugin is not DB based 2017-11-20 15:36:35 +00:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-20 15:36:35 +00:00
opts.py fix missing l2pop config option docs 2017-10-23 17:40:00 +02:00
policy.py Log policy filters in one line 2017-08-23 21:23:01 +00:00
service.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
version.py
worker.py replace WorkerSupportServiceMixin with neutron-lib's WorkerBase 2017-06-14 06:56:48 -06:00
wsgi.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00