From 4edfa4689eb40d1ad8c67c9d3df7b7b2d49c43a3 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 18 Jul 2016 19:27:54 +0800 Subject: [PATCH] Fix notification_driver option Option "notification_driver" from group "DEFAULT" is deprecated. Use option "driver" from group "oslo_messaging_notifications". Change-Id: I98ccf46b380a28e8ea1995d06321b5af6c461aed --- templates/nova.conf.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index c02cfa17..50e3ff53 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -126,7 +126,11 @@ memcached_servers = {{ memcached_servers }} instance_usage_audit = True instance_usage_audit_period = hour notify_on_state_change = vm_and_task_state -notification_driver = messagingv2 +{% endif %} + +{% if nova_ceilometer_enabled %} +[oslo_messaging_notifications] +driver = messagingv2 {% endif %} # Cinder @@ -242,7 +246,6 @@ rabbit_virtual_host = {{ nova_rabbitmq_vhost }} rabbit_hosts = {{ nova_rabbitmq_servers }} rabbit_use_ssl = {{ nova_rabbitmq_use_ssl }} - {% if nova_virt_type == 'ironic' %} [ironic] # TODO(mrda): These should be changed to support the Keystone v3 API