From 67d5ab16d69ffcd4d85972769a683c142d8c0484 Mon Sep 17 00:00:00 2001 From: Peter Razumovsky Date: Wed, 21 Dec 2016 12:22:29 +0400 Subject: [PATCH] Add searchlight notification driver condition Add condition to cinder conf to update oslo_messaging_notifications/driver to searchlight required value if searchlight is listening cinder. Change-Id: I8efed6bd223489545adb9f7a59fb1f05aa445af5 --- service/files/cinder.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service/files/cinder.conf.j2 b/service/files/cinder.conf.j2 index 0821bae..9e8e0db 100644 --- a/service/files/cinder.conf.j2 +++ b/service/files/cinder.conf.j2 @@ -54,3 +54,8 @@ rbd_ceph_conf = /etc/ceph/ceph.conf [privsep_entrypoint] helper_command=sudo cinder-rootwrap /etc/cinder/rootwrap.conf privsep-helper --config-file /etc/cinder/cinder.conf + +{% if searchlight is defined and searchlight.services.cinder %} +[oslo_messaging_notifications] +driver = {{ searchlight.notification_driver }} +{% endif %}