Enable split logging for cinder-keystoneclient interaction

To enable split logging functionality[1], 'split_loggers' conf option
can be passed in below two ways:

1. As 'split_loggers' is already registred in [default] and [service_user]
group of cinder.conf we can use it while creating keystoneclient.
2. Register 'split_loggers' conf option in keystonemiddleware[2] so that we
can get it in [keystone_authtoken] group of cinder.conf and use it while
creating keystoneclient.

In this patch we are passing it from [service_user] group at the time of
creating keystoneclient.

[1]: https://review.openstack.org/#/c/505764/
[2]: https://review.openstack.org/#/c/578008/

Change-Id: Ic4972c6ebcac7115133ff7e906f756e68588a7b5
This commit is contained in:
openstack 2018-08-06 07:23:22 +00:00
parent 5abe7c7fb4
commit d6a19e403a
1 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,8 @@ def _keystone_client(context, version=(3, 0)):
insecure=CONF.keystone_authtoken.insecure,
cacert=CONF.keystone_authtoken.cafile,
key=CONF.keystone_authtoken.keyfile,
cert=CONF.keystone_authtoken.certfile)
cert=CONF.keystone_authtoken.certfile,
split_loggers=CONF.service_user.split_loggers)
return client.Client(auth_url=CONF.keystone_authtoken.auth_url,
session=client_session, version=version)