In the recent release of keystoneauth1 2.18.0 provision is made to log
x-openstack-request-id for session client. Once this new library is synced
in openstack projects, the x-openstack-request-id will be logged twice
on the console if session client is used.
Removed logging of x-openstack-request-id in case of SessionClient as it
is already logged in keystoneauth1. x-openstack-request-id will only be
logged once on console if HTTPClient is used.
Reviewed: https:/ /review. openstack. org/422591 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=87e4f7646fa ac97b179a71e4f2 221ad646644535
Committed: https:/
Submitter: Jenkins
Branch: master
commit 87e4f7646faac97 b179a71e4f2221a d646644535
Author: Abhishek Kekane <email address hidden>
Date: Wed Jan 18 12:38:26 2017 +0530
x-openstack -request- id logged twice in logs
In the recent release of keystoneauth1 2.18.0 provision is made to log -request- id for session client. Once this new library is synced request- id will be logged twice
x-openstack
in openstack projects, the x-openstack-
on the console if session client is used.
For example,
$ glance --debug image-list
DEBUG: keystoneauth. session: GET call to image for 10.232. 48.204: 9292/v2/ schemas/ image used request id 96a3f203- c605-4c96- a31d-f1199d4170 5c
http://
req-
DEBUG: glanceclient. common.http:GET call to glance-api for 10.232. 48.204: 9292/v2/ schemas/ image used request id 96a3f203- c605-4c96- a31d-f1199d4170 5c
http://
req-
Above log will be logged twice on the console.
Removed logging of x-openstack- request- id in case of SessionClient as it request- id will only be
is already logged in keystoneauth1. x-openstack-
logged once on console if HTTPClient is used.
Depends-On: I492b331ff3da8d 0b91178bf0d5fe1 d3702f15bd7 113f53682aee74b dd40a346e54
Closes-Bug: #1657351
Change-Id: I64258f997dc060