neutron/neutron/agent
Rodolfo Alonso Hernandez e28e767bd6 Check dnsmasq process is active when spawned
After spawning the "dnsmasq" process in the method
"Dnsmasq._spawn_or_reload_process", we need to check that the "dnsmasq"
process is running and could be detected by the ProcessManager instance
controlling it.

ProcessManager determines if a process is "active":
- If the network ID is in the cmdline used to execute the process.
- If the process is detected by psutil.Process(pid), returning the
  cmdline needed in the first condition.
- If the PID file exists; this is written by the dnsmasq process
  once is started and is needed in the second condition.

To make this feature available for any other process using
ProcessManager, the implementation is done in this class.

Change-Id: I51dc9d342c613afcbcfdc50a1d2811502748f170
Closes-Bug: #1849502
(cherry picked from commit 7c5ce50a0c)
(cherry picked from commit ce3f2f7d26)
(cherry picked from commit 2d8613e3c4)
2020-04-07 20:10:15 +00:00
..
common don't clear skb mark when ovs is hw-offload enabled 2019-12-23 11:06:40 +00:00
dhcp Switch to use cast method in dhcp_ready_on_ports method 2019-11-15 15:54:37 +01:00
l2 Clear residual qos rules after l2-agent restarts. 2019-01-24 06:43:01 +00:00
l3 Do not initialize snat-ns twice 2020-02-24 04:47:01 +00:00
linux Check dnsmasq process is active when spawned 2020-04-07 20:10:15 +00:00
metadata Remove extra header fields in proxied metadata requests 2020-03-03 20:11:49 +00:00
ovsdb Merge "Fixes using SSL OVSDB connection" 2018-02-09 09:04:26 +00:00
windows Fix neutron-openvswitch-agent Windows support 2018-11-23 17:13:42 +02:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
agent_extension.py Generalize agent extension mechanism 2016-07-19 13:45:22 +00:00
agent_extensions_manager.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dhcp_agent.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
firewall.py consume load_class_by_alias_or_classname from neutron-lib 2017-10-21 06:01:15 -06:00
l3_agent.py Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
metadata_agent.py Remove deprecated cache_url 2017-11-10 00:47:19 -05:00
resource_cache.py Merge "Fix race condition with enabling SG on many ports at once" 2018-01-27 10:36:37 +00:00
rpc.py Do not call update_device_list in large sets 2019-04-12 20:07:04 +00:00
securitygroups_rpc.py Add accepted egress direct flow 2020-02-25 07:32:29 +08:00