neutron/neutron/agent/linux
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
..
openvswitch_firewall Add accepted egress direct flow 2020-02-25 07:32:29 +08:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
async_process.py Add kill_timeout to AsyncProcess 2019-01-04 10:46:44 +00:00
bridge_lib.py LinuxBridge: Use ifindex for logical 'timestamp' 2016-09-14 17:02:46 +00:00
daemon.py Remove argument "watch_log = " 2017-10-13 09:42:48 +08:00
dhcp.py Check dnsmasq process is active when spawned 2020-04-07 20:10:15 +00:00
dibbler.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
external_process.py Check dnsmasq process is active when spawned 2020-04-07 20:10:15 +00:00
interface.py [DVR] Allow multiple subnets per external network 2019-01-18 08:22:54 +00:00
ip_conntrack.py Remove race and simplify conntrack state management 2018-03-26 17:34:59 +00:00
ip_lib.py Check the namespace is ready in test_mtu_update tests 2019-09-16 09:31:34 +00:00
ip_link_support.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
ip_monitor.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
ipset_manager.py use synchronized lock decorator from neutron-lib 2017-10-04 13:57:42 -06:00
iptables_comments.py Iptables firewall driver adds forward rules for trusted ports 2018-03-25 09:56:10 +00:00
iptables_firewall.py When converting sg rules to iptables, do not emit dport if not supported 2019-03-11 20:26:49 -06:00
iptables_manager.py Packets getting lost during SNAT with too many connections 2019-06-04 23:23:43 +00:00
keepalived.py Give some HA router case specific resources 2019-04-25 08:30:34 +00:00
l3_tc_lib.py Make L3 IP tc filter rate limit more accurate 2018-07-12 11:43:23 +00:00
ovsdb_monitor.py ovsdb monitor: do not die on ovsdb-client stderr output 2018-09-17 08:18:11 +00:00
pd.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
pd_driver.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
polling.py Support ovsdb-client monitor with remote connection 2017-01-17 06:00:58 -08:00
ra.py Dropping radvd process privileges 2018-06-26 17:48:10 +00:00
tc_lib.py Fix ingress bw limit for OVS DPDK ports 2018-01-15 13:19:14 +00:00
utils.py Check if process' cmdline is "space separarated" 2019-03-27 09:44:07 +00:00
xenapi_root_helper.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00