neutron/neutron/agent/linux
Rodolfo Alonso Hernandez ce3f2f7d26 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)
2019-10-30 12:23:56 +00:00
..
openvswitch_firewall Handle OVSFWPortNotFound and OVSFWTagNotFound in ovs firewall 2019-10-28 06:34:53 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
bridge_lib.py Add namespace support for "bridge" commands 2019-04-29 07:52:18 +00:00
daemon.py Set neutron-keepalived-state-change proctitle 2019-05-23 15:22:35 +08:00
dhcp.py Check dnsmasq process is active when spawned 2019-10-30 12:23:56 +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 2019-10-30 12:23:56 +00:00
interface.py Pass get_networks() callback to interface driver 2019-07-30 20:21:16 +03:00
ip_conntrack.py Merge "Use '-p ip' instead of '-p 0' with conntrack" 2019-04-12 13:02:24 +00:00
ip_lib.py Kill all processes running in a namespace before deletion 2019-08-21 09:03:54 +00:00
ip_link_support.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
ip_monitor.py Trivial: Move platform independent modules to common dir 2018-08-14 09:54:01 +03:00
ipset_manager.py Parametrize ipset locking with network namespace 2019-04-24 20:05:28 +00:00
iptables_comments.py Iptables firewall driver adds forward rules for trusted ports 2018-03-06 10:13:44 +01:00
iptables_firewall.py Canonicalize IPv6 ICMP protocol name in security groups 2019-05-24 20:05:48 -05:00
iptables_manager.py Merge "Do not initialize the iptables nat table in the dhcp-agent" 2019-04-26 06:42:34 +00:00
keepalived.py Add kill hooks for external processes 2019-06-03 14:39:51 +02:00
l3_tc_lib.py Use Pyroute2 "add_tc_qdisc" function in l3_tc_lib 2019-07-05 08:13:07 +00:00
pd.py remove neutron.common.constants 2019-04-04 14:10:26 -06:00
pd_driver.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
ra.py Add radvd_user config option 2019-10-25 08:14:45 +00:00
tc_lib.py Use Pyroute2 "list_tc_qdiscs" function in l3_tc_lib 2019-07-05 08:11:00 +00:00
utils.py Fix race condition when getting cmdline 2019-09-18 21:32:33 -04:00
xenapi_root_helper.py Fix bandit warning 2019-05-10 08:38:34 -04:00