neutron/neutron/tests/unit/agent/linux
Rodolfo Alonso Hernandez 7c5ce50a0c 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
2019-10-25 13:30:30 -04:00
..
openvswitch_firewall Add VLAN type conntrack direct flow 2019-08-27 23:43:52 +08:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
failing_process.py Keep reading stdout/stderr until after kill 2015-11-19 19:14:13 +02:00
test_bridge_lib.py Change to use iproute2 instead of brctl 2018-11-14 12:46:37 -05:00
test_daemon.py use test tools from neutron-lib 2019-06-05 06:21:04 -06:00
test_dhcp.py Check dnsmasq process is active when spawned 2019-10-25 13:30:30 -04:00
test_external_process.py Check dnsmasq process is active when spawned 2019-10-25 13:30:30 -04:00
test_interface.py Change agents to use get_devices_with_ip() 2019-02-05 18:30:01 +02:00
test_ip_conntrack.py Move conntrack zones to IPTablesFirewall 2017-03-30 14:54:51 -07:00
test_ip_lib.py Implement "ip route delete" command using Pyroute2 2019-07-01 10:37:19 +00:00
test_ip_link_support.py sriov: implement spoofchecking configuration 2015-07-29 19:38:25 +02:00
test_ip_monitor.py Fix W605 warnings 2018-05-17 16:20:59 +09:00
test_ipset_manager.py Create ipset set_name_exists() method 2015-10-14 10:18:44 -04:00
test_iptables_firewall.py Log the IPTables rules if "debug_iptables_rules" 2019-09-23 09:58:36 +00:00
test_iptables_manager.py Do not initialize the iptables nat table in the dhcp-agent 2019-04-24 20:56:03 -04:00
test_keepalived.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
test_l3_tc_lib.py Use Pyroute2 "add_tc_qdisc" function in l3_tc_lib 2019-07-05 08:13:07 +00:00
test_pd.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
test_tc_lib.py Add TC filtering for VXLAN traffic 2019-05-28 08:27:42 +00:00
test_utils.py Fix race condition when getting cmdline 2019-09-18 21:32:33 -04:00
test_xenapi_root_helper.py Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00