[openstack-dev] [Cinder] Need suggestion to add split-logger functionality in cinder
Neha.Alhat at nttdata.com
Thu May 17 13:03:32 UTC 2018
Monty Taylor added split-logger functionality in patch.
This functionality splits logs in four different logs:
Working on enabling this split_logger functionality for cinder to its internal clients interaction (like glanceclient, keystoneclient, novaclient).
Steps followed to enable this functionality:
1. Register the configuration option 'split_loggers' in keystoneauth .
2. After registering 'split_loggers' option in keystoneauth for cinder to novaclient interaction, need to set value of 'split_loggers=True/False' under [nova] section of cinder.conf, so that this 'split_loggers' value will get loaded from [nova] section at the time of loading session .
So trying same approach for cinder to glanceclient interaction, but there is one difference:
glanceclient uses 'load_from_options' method  while loading session
And novaclient is using 'load_session_from_conf_options' method from keystoneauth.
For this need to register the session conf options from keystoneauth under [glance] section which earlier was under [default] section.
Please refer changes made for this.
Pros of using this approach:
1. As we are setting conf option in keystoneauth it will directly load value of 'split_loggers' from conf file.
So no need to pass explicitly 'split_loggers' value at the time of loading keystoneauth session.
Cons of using this approch:
1. Need to register session conf options under [glance] section instead of [default].
Need opinion on this as it is changing the group from [default] to [glance] for session conf options.
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged,confidential, and proprietary data. If you are not the intended recipient,please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev