neutron/neutron/tests/functional/cmd
Daniel Alvarez 55a25bdfaf Fix a bug in process_spawn binding on ports
process_spawn module is used in netns-cleanup functional tests. This
module forks processes which will listen on random ports/sockets.
Due to the lack of randomness on how get_free_namespace_port() from
net_helpers was used, all forked processes got the same sequence of
ports to bind on. This led to a race condition and some stayed
alive without actually listening on any port/socket.

Also, the ignore_sigterm feature wasn't handled properly and parent
always died after a SIGTERM which caused the test to fail when the
above condition happened since netns-cleanup wasn't able to find its
parent and kill the process which failed to bind.

Change-Id: I2f6e1f99eae595e3ea8c10998a7ad3c861a694f4
Closes-Bug: #1652124
2016-12-22 19:34:24 +00:00
..
__init__.py Add a netns-cleanup functional test 2015-03-13 17:14:37 +00:00
process_spawn.py Fix a bug in process_spawn binding on ports 2016-12-22 19:34:24 +00:00
test_ipset_cleanup.py Refactoring config options for cmd 2016-07-31 04:37:29 +00:00
test_linuxbridge_cleanup.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_netns_cleanup.py Kill processes when cleaning up namespaces 2016-12-20 10:52:41 +00:00
test_ovs_cleanup.py Refactoring config options for cmd 2016-07-31 04:37:29 +00:00