]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add Process class helper to manage processes with namespace
authorJakub Libosvar <libosvar@redhat.com>
Fri, 3 Oct 2014 12:02:55 +0000 (14:02 +0200)
committerJakub Libosvar <libosvar@redhat.com>
Wed, 7 Jan 2015 10:20:27 +0000 (11:20 +0100)
commit374a612241ff9f15bcdcccb6c60d6d0847706766
treef886a5032ea42361cc6ca86f203fd7914e56546d
parent98c53d5b370e33bd91e17109e0fe4e9fb5b2ef9b
Add Process class helper to manage processes with namespace

This class extends Popen class with usage of namespace and root-helper.
Because of usage of root wrapper, this class re-uses get_child_pid() for
killing the child process. get_child_pid() is taken out of AsyncProcess
as a part of this patch.

Change-Id: I856b3ec75f347ecccaf4a1c6fd17b28a33ee1a3f
Related-Bug: 1243216
neutron/agent/linux/async_process.py
neutron/agent/linux/utils.py
neutron/tests/contrib/filters.template
neutron/tests/functional/agent/linux/helpers.py
neutron/tests/functional/agent/linux/test_async_process.py
neutron/tests/functional/agent/linux/test_helpers.py [new file with mode: 0644]
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