Fix the missing log request-id

This PS ensure oslo Context.update_store method is called, to
ensure that thread-local context object is updated before
Trove service render log

Story: 2010451
Task: 46951

Change-Id: I5258853aed33cbcd26a5b6d68a5e5a4b9aa1fd48
Signed-off-by: Ha Minh Cong <conghm1@viettel.com.vn>
This commit is contained in:
Ha Minh Cong 2022-11-27 23:26:49 +07:00 committed by Cong Ha Minh
parent 257c7b4f62
commit 61a5198255
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix missing request-id in Trove services logs.
`Story 2010451 <https://storyboard.openstack.org/#!/story/2010451>`__

View File

@ -62,6 +62,7 @@ class TroveContext(context.RequestContext):
return parent_dict
def update_store(self):
super(TroveContext, self).update_store()
local.store.context = self
@classmethod