55a25bdfaf
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 |
||
---|---|---|
.. | ||
__init__.py | ||
process_spawn.py | ||
test_ipset_cleanup.py | ||
test_linuxbridge_cleanup.py | ||
test_netns_cleanup.py | ||
test_ovs_cleanup.py |