neutron/neutron/cmd
Daniel Alvarez 5ff38b7f30 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.

(cherry picked from commit 3f9f740d81)
Change-Id: Ie233261e4be36eecaf6ec6d0532f0f5e2e996cd2
Closes-Bug: #1654287
2017-01-20 02:13:46 +00:00
..
eventlet Remove BGP code from neutron 2016-04-25 21:54:06 -07:00
sanity iptables: fail to start ovs/linuxbridge agents on missing sysctl knobs 2016-11-18 18:18:02 +00:00
__init__.py Fix logging error for Guru Meditation Report 2016-02-08 16:52:17 -08:00
ipset_cleanup.py Refactoring config options for cmd 2016-07-31 04:37:29 +00:00
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
linuxbridge_cleanup.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
netns_cleanup.py Fix netns_cleanup interrupted on rwd I/O 2017-01-20 02:13:46 +00:00
ovs_cleanup.py Refactoring config options for cmd 2016-07-31 04:37:29 +00:00
pd_notify.py Use SIGUSR1 to notify l3 agent of changing prefix file 2015-11-13 17:53:47 +03:00
sanity_check.py iptables: fail to start ovs/linuxbridge agents on missing sysctl knobs 2016-11-18 18:18:02 +00:00