nova/nova/cmd
Radoslav Gerganov 233ea582f7 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
2018-08-01 13:54:31 +03:00
..
__init__.py Reload oslo_context after calling monkey_patch() 2018-08-01 13:54:31 +03:00
api.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
api_metadata.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
api_os_compute.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
baseproxy.py Convert websocketproxy to use db for token validation 2018-05-03 09:57:56 -04:00
cells.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
common.py Handle deprecation of inspect.getargspec 2018-04-26 11:51:10 +00:00
compute.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
conductor.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
console.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00
consoleauth.py Deprecate the nova-consoleauth service 2018-05-03 10:02:29 -04:00
dhcpbridge.py Remove translation of log messages 2017-06-09 09:06:16 +00:00
manage.py Merge "Add nova-status upgrade check for request spec migrations" 2018-07-28 02:39:19 +00:00
network.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
novncproxy.py console: Provide an RFB security proxy implementation 2018-01-12 10:00:42 +00:00
policy.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
scheduler.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04: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 Merge "Add nova-status upgrade check for request spec migrations" 2018-07-28 02:39:19 +00:00
xvpvncproxy.py Pass config object to oslo_reports 2017-09-05 10:39:43 +00:00