From 28ada504af4084f72f3503d77806075e7ad509b0 Mon Sep 17 00:00:00 2001 From: Gorka Eguileor Date: Mon, 15 Jan 2018 21:47:56 +0100 Subject: [PATCH] Fix: Propagate OS global request ID Cinder doesn't propagate global request IDs internally, so any external request that comes with it will have it logged at the API service and then we'll lose this information in all the other services. We are properly serializing this information on our RPC calls, but we are not reconstructing the Context properly on the receiving end. This patch ensures that the "global_request_id" field from the context is properly added on RPC reception. Closes-Bug: #1743462 Change-Id: I35834a43298b5287d5cd3c37baa82903bdffda12 --- cinder/context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cinder/context.py b/cinder/context.py index ef681a22b2f..11872b1b8d3 100644 --- a/cinder/context.py +++ b/cinder/context.py @@ -176,6 +176,7 @@ class RequestContext(context.RequestContext): quota_class=values.get('quota_class'), service_catalog=values.get('service_catalog'), request_id=values.get('request_id'), + global_request_id=values.get('global_request_id'), is_admin=values.get('is_admin'), roles=values.get('roles'), auth_token=values.get('auth_token'),