The eventlet.monkey_patch is not valid under uwsgi mode
Bug #1787331 reported by
Yikun Jiang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Yikun Jiang |
Bug Description
There was a eventlet.
So, we need do same monkey_patch when we setup uwsgi appilication.
[1] https:/
Changed in nova: | |
assignee: | nobody → Yikun Jiang (yikunkero) |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: api |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/592285 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=23ba1c69065 2832c655d574766 30f02c268c87ae
Committed: https:/
Submitter: Zuul
Branch: master
commit 23ba1c690652832 c655d57476630f0 2c268c87ae
Author: Yikun Jiang <email address hidden>
Date: Thu Aug 16 14:29:26 2018 +0800
Make monkey patch work in uWSGI mode
There was a eventlet. monkey_ patch [1] when we launch a nova
process(like nova-api, nova-compute), but it's invalid under
the uwsgi mode.
But there are concurrency requirements in the api service, such
as, when listing instances cross multiple cells we're using
greenthreads and oslo.db does a time.sleep to allow switching
greenthreads [2].
So, in this patch we add the monkey_patch in the uwsgi
application setup and refactor the monkey patching to use common
code.
[1] https:/ /github. com/openstack/ nova/blob/ 233ea58/ nova/cmd/ __init_ _.py#L26 /github. com/openstack/ oslo.db/ blob/9c66959/ oslo_db/ sqlalchemy/ engines. py#L51
[2] https:/
Closes-bug: #1787331
Change-Id: Ie7bf5d012e2ccb cd63c262ddaf739 782afcdaf56