neutron/neutron/tests/unit/cmd
Daniel Alvarez 3f9f740d81 Fix netns_cleanup interrupted on rwd I/O
Functional tests for netns_cleanup have been failing a few times
in the gate lately. After thorough tests we've seen that the issue was
related to using rootwrap-daemon inside a wait_until_true loop. When
timeout fired while utils.execute() was reading from rootwrap-daemon,
it got interrupted and the output of the last command was not read.
Therefore, next calls to utils.execute() would read the output of
their previous command rather than their own, leading to unexpected
results.

This fix will poll existing processes in the namespace without making
use of the wait_until_true loop. Instead, it will check elapsed time
and raise the exception if timeout is exceeded.

Also, i'm removing debug traces introduced in
327f7fc4d5 which helped finding the root
cause of this bug.

Change-Id: Ie233261e4be36eecaf6ec6d0532f0f5e2e996cd2
Closes-Bug: #1654287
2017-01-12 03:52:30 +00:00
..
server Don't decide web_framework before config parse 2016-01-22 17:44:35 -08:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_netns_cleanup.py Fix netns_cleanup interrupted on rwd I/O 2017-01-12 03:52:30 +00:00
test_ovs_cleanup.py enable OVSDB native interface by default 2016-06-25 10:43:12 +03:00
test_sanity_check.py Fix import path in neutron-sanity-check for ml2_sriov opts 2015-09-01 04:16:01 +00:00