commit 7c5ce50a0c9e09d2729ae1ce79d2623ccafca9ee
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Oct 23 14:47:54 2019 +0000
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.
Reviewed: https:/ /review. opendev. org/690700 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=7c5ce50a0c9 e09d2729ae1ce79 d2623ccafca9ee
Committed: https:/
Submitter: Zuul
Branch: master
commit 7c5ce50a0c9e09d 2729ae1ce79d262 3ccafca9ee
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Oct 23 14:47:54 2019 +0000
Check dnsmasq process is active when spawned
After spawning the "dnsmasq" process in the method _spawn_ or_reload_ process" , we need to check that the "dnsmasq"
"Dnsmasq.
process is running and could be detected by the ProcessManager instance
controlling it.
ProcessManager determines if a process is "active": Process( pid), returning the
- If the network ID is in the cmdline used to execute the process.
- If the process is detected by psutil.
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: I51dc9d342c613a fcbcfdc50a1d281 1502748f170
Closes-Bug: #1849502