Merge "Load additional config files for oslo.messaging options"
This commit is contained in:
commit
e0442522a8
@ -160,10 +160,24 @@ class Swift(object):
|
||||
|
||||
self.ignore_projects = self._get_ignore_projects(conf)
|
||||
|
||||
extra_config_files = conf.get('extra_config_files')
|
||||
if extra_config_files is not None:
|
||||
extra_config_files = list_from_csv(extra_config_files)
|
||||
|
||||
extra_config_dirs = conf.get('extra_config_dirs')
|
||||
if extra_config_dirs is not None:
|
||||
extra_config_dirs = list_from_csv(extra_config_dirs)
|
||||
|
||||
oslo_conf = cfg.ConfigOpts()
|
||||
oslo_conf([], project='swift',
|
||||
default_config_files=extra_config_files,
|
||||
default_config_dirs=extra_config_dirs,
|
||||
validate_default_values=True)
|
||||
|
||||
oslo_messaging.set_transport_defaults(conf.get('control_exchange',
|
||||
'swift'))
|
||||
self._notifier = oslo_messaging.Notifier(
|
||||
oslo_messaging.get_notification_transport(cfg.CONF,
|
||||
oslo_messaging.get_notification_transport(oslo_conf,
|
||||
url=conf.get('url')),
|
||||
publisher_id='ceilometermiddleware',
|
||||
driver=conf.get('driver', 'messagingv2'),
|
||||
|
7
releasenotes/notes/bug-1673738-ec8f7dd8ac43ad54.yaml
Normal file
7
releasenotes/notes/bug-1673738-ec8f7dd8ac43ad54.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
The ceilometer middleware now supports loading additional config files to
|
||||
look up oslo.messaging library options. Set the ``extra_config_files``
|
||||
parameter or the ``extra_config_dirs`` parameter in the ceilometer
|
||||
middleware section in the swift proxy server config file.
|
Loading…
x
Reference in New Issue
Block a user