commit e28e767bd6d0b3cbe64b929c07d3d82d683a074b
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.
Change-Id: I51dc9d342c613afcbcfdc50a1d2811502748f170
Closes-Bug: #1849502
(cherry picked from commit 7c5ce50a0c9e09d2729ae1ce79d2623ccafca9ee)
(cherry picked from commit ce3f2f7d2690eec0dcab4073cbf357b683c6394b)
(cherry picked from commit 2d8613e3c4d29a4bb5be81bd78d749e0f448cffe)
Reviewed: https:/ /review. opendev. org/718207 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=e28e767bd6d 0b3cbe64b929c07 d3d82d683a074b
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit e28e767bd6d0b3c be64b929c07d3d8 2d683a074b
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 2729ae1ce79d262 3ccafca9ee) 0dcab4073cbf357 b683c6394b) bb5be81bd78d749 e0f448cffe)
Closes-Bug: #1849502
(cherry picked from commit 7c5ce50a0c9e09d
(cherry picked from commit ce3f2f7d2690eec
(cherry picked from commit 2d8613e3c4d29a4