]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure get_pid_to_kill works with rootwrap script
authorTerry Wilson <twilson@redhat.com>
Tue, 22 Oct 2013 18:22:18 +0000 (13:22 -0500)
committerTerry Wilson <twilson@redhat.com>
Wed, 20 Nov 2013 15:57:23 +0000 (09:57 -0600)
commit61e9268bd4b696860eeb5a6ce59ae6bf42b1f0c8
tree0a84d548abb7ae3465fb151e694bb94d8748cc97
parent43b22ddb7d75eb5e596b5b35b6ffa78435def690
Ensure get_pid_to_kill works with rootwrap script

To ensure that correct process is killed when using a rootwrap
script, we must recursively list the children of our top-level
process and kill the last one. This patch uses the psutil python
module which is already used in the heat-cfntools project.

Change-Id: I702bb9dd794c08fcaab637284ee303de1778cbb9
neutron/agent/linux/async_process.py
neutron/agent/linux/utils.py
neutron/tests/functional/agent/linux/test_ovsdb_monitor.py
neutron/tests/unit/agent/linux/test_async_process.py
neutron/tests/unit/test_agent_linux_utils.py
requirements.txt