Preserve request id in Cinder logs when creating boot volume

The method get_internal_tenant_context miss the overwrite
parameter in RequestContext.
Ref patch: https://review.opendev.org/#/c/247102/.

Change-Id: I47c57254adeee065600b7f0db95bee1f813463bf
Closes-Bug: #1869160
(cherry picked from commit 5da7d449a2)
This commit is contained in:
yenai 2020-03-26 17:50:19 +08:00 committed by Eric Harney
parent 173619f9ec
commit d9c9786382
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ def get_internal_tenant_context():
if project_id and user_id:
return RequestContext(user_id=user_id,
project_id=project_id,
is_admin=True)
is_admin=True,
overwrite=False)
else:
LOG.warning('Unable to get internal tenant context: Missing '
'required config parameters.')