Merge "Harmonize notification configuration"
This commit is contained in:
commit
c8dfcdcf5d
|
@ -60,7 +60,12 @@ control_exchange=cinder
|
||||||
|
|
||||||
volume_clear={{ controller.wipe_method }}
|
volume_clear={{ controller.wipe_method }}
|
||||||
|
|
||||||
{%- if controller.notification %}
|
{%- if controller.notification is mapping %}
|
||||||
|
notification_driver = {{ controller.notification.get('driver', 'messagingv2') }}
|
||||||
|
{%- if controller.notification.topics is defined %}
|
||||||
|
notification_topics = {{ controller.notification.topics }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- elif controller.notification %}
|
||||||
control_exchange = cinder
|
control_exchange = cinder
|
||||||
notification_driver = messagingv2
|
notification_driver = messagingv2
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
@ -59,19 +59,13 @@ control_exchange=cinder
|
||||||
|
|
||||||
volume_clear={{ volume.wipe_method }}
|
volume_clear={{ volume.wipe_method }}
|
||||||
|
|
||||||
{%- if volume.notification %}
|
{%- if volume.notification is mapping %}
|
||||||
control_exchange = cinder
|
notification_driver = {{ volume.notification.get('driver', 'messagingv2') }}
|
||||||
|
|
||||||
{%- if volume.notification.driver is defined %}
|
|
||||||
notification_driver = {{ volume.notification.driver }}
|
|
||||||
{%- else %}
|
|
||||||
notification_driver = messagingv2
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
{%- if volume.notification.topics is defined %}
|
{%- if volume.notification.topics is defined %}
|
||||||
notification_topics = {{ volume.notification.topics }}
|
notification_topics = {{ volume.notification.topics }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- elif volume.notification %}
|
||||||
|
notification_driver = messagingv2
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
volume_name_template = volume-%s
|
volume_name_template = volume-%s
|
||||||
|
|
|
@ -69,7 +69,12 @@ verbose=True
|
||||||
lock_path=/var/lock/cinder
|
lock_path=/var/lock/cinder
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
{%- if controller.notification %}
|
{%- if controller.notification is mapping %}
|
||||||
|
driver = {{ controller.notification.get('driver', 'messagingv2') }}
|
||||||
|
{%- if controller.notification.topics is defined %}
|
||||||
|
topics = {{ controller.notification.topics }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- elif controller.notification %}
|
||||||
driver = messagingv2
|
driver = messagingv2
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,12 @@ use_syslog=false
|
||||||
verbose=True
|
verbose=True
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
{%- if volume.notification %}
|
{%- if volume.notification is mapping %}
|
||||||
|
driver = {{ volume.notification.get('driver', 'messagingv2') }}
|
||||||
|
{%- if volume.notification.topics is defined %}
|
||||||
|
topics = {{ volume.notification.topics }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- elif volume.notification %}
|
||||||
driver = messagingv2
|
driver = messagingv2
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,12 @@ nova_catalog_info = compute:nova:publicURL
|
||||||
osapi_volume_extension = cinder.api.contrib.standard_extensions
|
osapi_volume_extension = cinder.api.contrib.standard_extensions
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
{%- if controller.notification %}
|
{%- if controller.notification is mapping %}
|
||||||
|
driver = {{ controller.notification.get('driver', 'messagingv2') }}
|
||||||
|
{%- if controller.notification.topics is defined %}
|
||||||
|
topics = {{ controller.notification.topics }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- elif controller.notification %}
|
||||||
driver = messagingv2
|
driver = messagingv2
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,12 @@ nova_catalog_admin_info = compute:nova:adminURL
|
||||||
nova_catalog_info = compute:nova:publicURL
|
nova_catalog_info = compute:nova:publicURL
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
{%- if volume.notification %}
|
{%- if volume.notification is mapping %}
|
||||||
|
driver = {{ volume.notification.get('driver', 'messagingv2') }}
|
||||||
|
{%- if volume.notification.topics is defined %}
|
||||||
|
topics = {{ volume.notification.topics }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- elif volume.notification %}
|
||||||
driver = messagingv2
|
driver = messagingv2
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue