nova/nova/cmd
Radoslav Gerganov bee3e963ef Reload oslo_context after calling monkey_patch()
oslo.context is storing a global thread-local variable which keeps the
request context for the current thread. If oslo.context is imported
before calling monkey_patch(), then this thread-local won't be green and
instead of having one request per green thread, we will have one request
object which will be overwritten every time when a new context is
created.

To workaround the problem, always reload oslo_context.context after
calling monkey_patch() to make sure it uses green thread locals.

Change-Id: Id059e5576c3fc78dd893fde15c963e182f1157f6
Closes-Bug: #1773102
(cherry picked from commit 233ea582f7)
2018-08-06 18:18:04 +00:00
..
__init__.py Reload oslo_context after calling monkey_patch() 2018-08-06 18:18:04 +00:00
api.py Remove translation of log messages 2017-06-09 09:06:16 +00:00
api_metadata.py Remove conductor local api:s and 'use_local' config option 2016-10-18 14:26:06 +02:00
api_os_compute.py Cleanup wording on compute service version checks in API 2017-04-05 19:20:43 -04:00
baseproxy.py baseproxy: stop requiring CONF.verbose 2016-05-16 16:57:21 +02:00
cells.py Deprecate cells v1 2017-08-01 11:07:55 -04:00
common.py nova-manage: Deprecate '--version' parameters 2017-08-03 19:43:29 +01:00
compute.py Resource tracker compatibility with Ocata and Pike 2017-08-10 09:47:20 -04:00
conductor.py conf: Remove deprecated service manager opts 2016-12-05 23:28:49 +08:00
console.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
consoleauth.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
dhcpbridge.py Remove translation of log messages 2017-06-09 09:06:16 +00:00
idmapshift.py Fix invalid import order 2016-07-04 11:23:52 +05:30
manage.py cleanup mapping/reqspec after archive instance 2018-07-06 21:52:43 +00:00
network.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
novncproxy.py config options: fix the missed cli options of novncproxy 2016-04-04 18:05:32 +08:00
policy_check.py Removed unnecessary parantheses and fixed formation 2017-02-09 14:03:53 +01:00
scheduler.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
serialproxy.py config options: centralize section "serial_console" 2015-11-19 11:00:20 +01:00
spicehtml5proxy.py config options: centralize 'spice' options 2016-04-11 10:34:05 +00:00
status.py Require Placement 1.10 in nova-status upgrade check 2017-08-09 15:26:46 -04:00
xvpvncproxy.py Revert "Enable options for oslo.reports" 2015-12-05 16:12:52 +00:00