nfv/nfv
Bart Wensley ccd59a0711 Handle REST API timeouts gracefully in the VIM
The VIM is leaking FDs. The problem happens as follows:
- The VIM has worker processes that are used to communicate with
  other processes through their REST APIs (e.g. sysinv, nova,
  cinder). The VIM does not specify a timeout when sending REST API
  requests.
- The VIM does have a timeout for how long a worker process takes to
  process a request, which can vary depending on the request.
- If the worker process sends a REST API request and does not get a
  response in time (e.g. because a message is lost or the target
  process is down), the VIM terminates the worker process. This is
  being done with a call to Process.terminate in the python
  multiprocessing library. The docs for this library clearly indicate
  that Process.terminate should not be used for a process that uses
  any shared resources (e.g. pipes). In this case, the worker
  processes are using shared resources (pipes for one) and these
  resources are not freed, leading to the FD leak.

The solution is to ensure that a timeout is set when sending REST API
requests. This timeout must be less than the worker timeout to ensure
that the workers do not timeout (and leak FDs) except in the rarest
of cases.

Change-Id: Iccff914e86224be96689738cdcc536a4d5acb861
Closes-Bug: 1862049
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2020-06-03 11:37:56 -05:00
..
centos Handle REST API timeouts gracefully in the VIM 2020-06-03 11:37:56 -05:00
nfv-client Add orchestrated fw update support to vim 2020-05-14 01:03:21 +00:00
nfv-common Handle REST API timeouts gracefully in the VIM 2020-06-03 11:37:56 -05:00
nfv-debug-tools/histogram_analysis Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
nfv-plugins Handle REST API timeouts gracefully in the VIM 2020-06-03 11:37:56 -05:00
nfv-tests Merge "Update default floating management address" 2020-06-02 17:47:26 +00:00
nfv-tools small cleanup required by OBS badness check - exec rights on non executable not allowed 2019-09-17 08:54:22 +02:00
nfv-vim Merge "Bring fw update detect and monitor up to the host level" 2020-06-02 14:45:06 +00:00
opensuse Add opensuse specfiles to nfv 2019-10-02 10:34:02 -05:00
.coveragerc Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
.gitignore Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
.stestr.conf Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:36:51 -07:00
pylint.rc Fix up nfv tox targets for python3 2019-10-30 10:50:25 -05:00
test-requirements.txt Fix relative import warnings from pylint 2018-12-20 16:54:35 -06:00
tox.ini Bring fw update detect and monitor up to the host level 2020-06-02 09:49:51 -04:00