cyborg/cyborg
chenke 08af601271 Solve py37 timeout
Py37 job always reports timeout error recently.
Please see [1] [2] [3].
At first it was suspected that the error was reported
because of the patch [4].
Therefore, Feng Shaohe's patch [5] revoked the merge,
and at this time, disappeared at py37 timeout.

But in fact, this problem is just hidden.
After removing this setting, the job of py37
is actually running on the environment of python 3.6
(community CI default version is 3.6), please see [6]
for detailed reasons.

Therefore, this patch exposes the hidden py37 timeout problem,
and at the same time, found method test_apply_patch_fpga_arq_monitor_job
, think it is the reason of the timeout. The reason I can find
this method is based on the the troubleshooting of tox -epy37 log.
After commenting out this method, I found that tox -epy37 can run
normally and there is no longer a timeout problem.

If you want to test, please ensure that you have a local
python3.7 environment, not 3.6, and execute rm .tox / -rf.
Then execute tox -epy37.

Therefore, the best way is to comment out this method and
restore py37 job at the same time.

If a friend discovers further reasons and solution, this method
can be restored, please refer to [7].

What went wrong in this method?
It is because in the deep call of this method, ThreadWork of
the thread pool will be used, which under Python3.7 will block
the execution of unit tests. For specific reasons, please see
[8] [9].

Reference:

[1]. https://review.opendev.org/#/c/702578/
[2]. https://review.opendev.org/#/c/703049/
[3]. https://review.opendev.org/#/c/703253/
[4]. https://review.opendev.org/#/c/696397/
[5]. https://review.opendev.org/#/c/706911/
[6]. http://eavesdrop.openstack.org/irclogs/%23openstack-infra/%23openstack-infra.2020-02-12.log.html#t2020-02-12T16:46:18
[7]. deed9c822e
[8]. https://review.opendev.org/#/c/707045/5//COMMIT_MSG
[9]. c61dd8c376/cyborg/objects/extarq/ext_arq_job.py (L41)

Change-Id: I09db889fe665c6246ec9503af92c909e7d0da24f
2020-02-14 19:49:34 +08:00
..
accelerator Set default value in get fpga trait 2020-01-13 22:16:20 -08:00
agent P6: Fix pep8 error in cyborg/agent and cyborg/db 2019-09-18 15:07:02 +08:00
api Merge "Add created_time and update_time for device profile API" 2020-01-14 08:38:37 +00:00
cmd Implement privsep boilerplate in cyborg. 2019-09-25 19:22:12 -07:00
common Merge "Send a separate bind event to Nova for each ARQ in an instance." 2020-02-12 14:25:59 +00:00
conductor Refactor _gen_resource_inventory 2019-12-16 15:41:24 +00:00
conf Remove useless glance api_servers define 2019-10-23 16:15:14 +08:00
db Merge "bugs fix for compatibility issues between Py2 and Py3" 2020-02-12 14:12:00 +00:00
hacking Improve pep8 checking along with hacking 2018-08-16 17:22:33 +07:00
image Use ResourceNotFound replace RP and Image NotFound 2020-01-17 09:08:22 +00:00
objects Fix warning in logs that '' is not a valid UUID. 2020-02-11 16:27:39 -08:00
privsep Implement privsep boilerplate in cyborg. 2019-09-25 19:22:12 -07:00
tests Solve py37 timeout 2020-02-14 19:49:34 +08:00
__init__.py Solve execute flake8 stuck in cyborg 2019-08-28 13:44:10 +08:00
context.py Remove useless glance api_servers define 2019-10-23 16:15:14 +08:00
quota.py Fix pep8 error in cyborg/*.py and add Forbidden class 2019-08-29 15:16:42 +08:00
service_auth.py Added Glance Client for Image downloading 2018-10-16 22:44:15 -04:00
version.py bug fix: devstack can not start cyborg 2018-03-29 20:41:31 +00:00