neutron/neutron/agent
Saverio Proto 4339740b93 Check if namespace exists before getting devices
If a neutron router has no ports defined, its namespace is deleted
by the cronjob /etc/cron.d/neutron-l3-agent-netns-cleanup.
It is required to check if the namespace exists before calling
iproute2 commands against the namespace.
It is not enough for the string of the namespace uuid to be defined,
the namespace must really exist on the network node.
This patch checks if the namespace exists when calling get_devices().
Otherwise the agent log file will be flooded with messages like
Cannot open network namespace "qrouter-<uuid>": No such file or directory
Failed to process compatible router '<uuid>'

Related-bug: 1573073

Change-Id: I744ef11529f9da5cbfdb812de0b35b95f9d078bb
(cherry picked from commit 7675495f26)
2016-11-04 08:39:53 -04:00
..
common Merge "Fix help message for external_network_bridge" into stable/mitaka 2016-08-25 17:53:36 +00:00
dhcp Restart dsnmasq on any network subnet change 2016-05-13 20:07:20 -07:00
l2 Add setting default max_burst value if not given by user 2016-07-25 22:29:44 +02:00
l3 Check for ha port to become ACTIVE 2016-10-12 18:35:43 +00:00
linux Check if namespace exists before getting devices 2016-11-04 08:39:53 -04:00
metadata Move state reporting initialization to after worker forking 2016-07-26 13:45:03 +00:00
ovsdb Pass timeout in milliseconds to timer_wait 2016-08-12 07:53:37 +00:00
windows Fix Windows IPDevice.device_has_ip racefulness 2016-05-23 17:34:05 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
dhcp_agent.py Remove deprecated use_namespaces option 2015-11-18 19:17:29 +01:00
firewall.py Open vSwitch conntrack based firewall driver 2016-02-16 16:47:21 +00:00
l3_agent.py Register RA and PD config options in l3-agent 2016-01-12 21:03:54 -05:00
metadata_agent.py Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
rpc.py Don't use exponential back-off for report_state 2016-07-29 19:13:45 +00:00
securitygroups_rpc.py firewall: don't warn about a driver that does not accept bridge 2016-04-11 05:50:49 +00:00