From d6a19e403ae1df7ebf4f6e302be666308c12aa59 Mon Sep 17 00:00:00 2001 From: openstack Date: Mon, 6 Aug 2018 07:23:22 +0000 Subject: [PATCH] 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 --- cinder/quota_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/quota_utils.py b/cinder/quota_utils.py index 4a6fbc35cc1..3bccd129e81 100644 --- a/cinder/quota_utils.py +++ b/cinder/quota_utils.py @@ -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)