]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add support for managing async processes
authorMaru Newby <marun@redhat.com>
Mon, 9 Sep 2013 08:29:54 +0000 (01:29 -0700)
committerMaru Newby <marun@redhat.com>
Mon, 14 Oct 2013 07:20:02 +0000 (07:20 +0000)
commitacf0209b28e21eed60158967fab77468eb195e7c
treeec0e622c053fc5ba5c996ff4e746bd104ceefa65
parent3de11584da1e2e55a33dab358cb90a6daacca3b8
Add support for managing async processes

Interacting with a long-running asynchronous process requires the
use of non-blocking io.  This change adds a helper class that can
launch a long-running process and read stdout and stderr in a
non-blocking fashion via eventlet.

This functionality is intended to support monitoring ovsdb via
a long-running and root-privileged invocation of ovsdb-client.

The complexity of the system interaction in this patch suggested
the addition of a functional test that validated actual behaviour.
The test was added under the neutron/tests/functional path which
is now included in the testr search path.

Partial-Bug: #1177973

Change-Id: I9969e556acecf7a9e77d873371cc2ec2647be011
12 files changed:
.testr.conf
TESTING
neutron/agent/linux/async_process.py [new file with mode: 0644]
neutron/agent/linux/utils.py
neutron/tests/functional/__init__.py [new file with mode: 0644]
neutron/tests/functional/agent/__init__.py [new file with mode: 0644]
neutron/tests/functional/agent/linux/__init__.py [new file with mode: 0644]
neutron/tests/functional/agent/linux/test_async_process.py [new file with mode: 0644]
neutron/tests/unit/agent/__init__.py [new file with mode: 0644]
neutron/tests/unit/agent/linux/__init__.py [new file with mode: 0644]
neutron/tests/unit/agent/linux/test_async_process.py [new file with mode: 0644]
neutron/tests/unit/test_agent_linux_utils.py