diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2 index 16f07b976c..f940585e10 100644 --- a/ansible/roles/cinder/templates/cinder.conf.j2 +++ b/ansible/roles/cinder/templates/cinder.conf.j2 @@ -45,7 +45,7 @@ auth_strategy = keystone transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{% if orchestration_engine == 'KUBERNETES' %}rabbitmq{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %} [oslo_messaging_notifications] -{% if enable_ceilometer | bool %} +{% if enable_ceilometer | bool or enable_searchlight | bool %} driver = messagingv2 {% endif %} diff --git a/ansible/roles/glance/templates/glance-api.conf.j2 b/ansible/roles/glance/templates/glance-api.conf.j2 index 9d53735948..f60eaa843a 100644 --- a/ansible/roles/glance/templates/glance-api.conf.j2 +++ b/ansible/roles/glance/templates/glance-api.conf.j2 @@ -71,7 +71,7 @@ filesystem_store_datadir = /var/lib/glance/images/ {% endif %} [oslo_messaging_notifications] -{% if enable_ceilometer | bool %} +{% if enable_ceilometer | bool or enable_searchlight | bool %} driver = messagingv2 {% else %} driver = noop diff --git a/ansible/roles/glance/templates/glance-registry.conf.j2 b/ansible/roles/glance/templates/glance-registry.conf.j2 index b982e8788c..b26551f10b 100644 --- a/ansible/roles/glance/templates/glance-registry.conf.j2 +++ b/ansible/roles/glance/templates/glance-registry.conf.j2 @@ -45,7 +45,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi flavor = keystone [oslo_messaging_notifications] -{% if enable_ceilometer | bool %} +{% if enable_ceilometer | bool or enable_searchlight | bool %} driver = messagingv2 {% else %} driver = noop diff --git a/ansible/roles/neutron/templates/neutron.conf.j2 b/ansible/roles/neutron/templates/neutron.conf.j2 index 024ad09e60..2f56fa81c5 100644 --- a/ansible/roles/neutron/templates/neutron.conf.j2 +++ b/ansible/roles/neutron/templates/neutron.conf.j2 @@ -91,7 +91,7 @@ memcached_servers = {% for host in groups['memcached'] %}{% if orchestration_eng {% endif %} [oslo_messaging_notifications] -{% if enable_ceilometer | bool %} +{% if enable_ceilometer | bool or enable_searchlight | bool %} driver = messagingv2 topics = notifications {% else %} diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2 index 6706d16e96..562dfc24ec 100644 --- a/ansible/roles/nova/templates/nova.conf.j2 +++ b/ansible/roles/nova/templates/nova.conf.j2 @@ -52,7 +52,7 @@ compute_driver = libvirt.LibvirtDriver # Though my_ip is not used directly, lots of other variables use $my_ip my_ip = {{ api_interface_address }} -{% if enable_ceilometer | bool %} +{% if enable_ceilometer | bool or enable_searchlight | bool %} instance_usage_audit = True instance_usage_audit_period = hour notify_on_state_change = vm_and_task_state @@ -187,7 +187,7 @@ rbd_secret_uuid = {{ rbd_secret_uuid }} compute = auto [oslo_messaging_notifications] -{% if enable_ceilometer | bool %} +{% if enable_ceilometer | bool or enable_searchlight | bool %} driver = messagingv2 topics = notifications {% else %}