Comment 18 for bug 1773102

Revision history for this message
John Smith (wang-zengzhi) wrote :

Yes, its a import ordering issue.

In bug #1510234 we import oslo service in nova/__init__.py before monkey patche threading to fix "heartbeats stop when time is changed". And oslo service imported oslo logging in which imported oslo context.
In this order, when oslo context imports threading and defines the _request_store where the context is stored as threading.local, it is not the monkey patched version and therefore will be shared among all the greenthreads that share the same python thread.

I tried to fix this question in my patch but I am not sure if the method is suitable.

to review: https://review.openstack.org/587754