Browse code

Fix Neutron configuration if Ceilometer is enabled

Previously if Ceilometer service was enabled,
configuration option to enable Neutron network
notifications was not set. This fixes it.

Change-Id: Ia53d9db1828ef2daa0ce637b2a2635795856502c
Closes-Bug: #1340754

Dina Belova authored on 2014/07/11 23:18:12
Showing 1 changed files
... ...
@@ -296,6 +296,9 @@ function configure_neutron {
296 296
     if is_service_enabled q-meta; then
297 297
         _configure_neutron_metadata_agent
298 298
     fi
299
+    if is_service_enabled ceilometer; then
300
+        _configure_neutron_ceilometer_notifications
301
+    fi
299 302
 
300 303
     _configure_neutron_debug_command
301 304
 }
... ...
@@ -722,6 +725,10 @@ function _configure_neutron_metadata_agent {
722 722
 
723 723
 }
724 724
 
725
+function _configure_neutron_ceilometer_notifications {
726
+    iniset $NEUTRON_CONF DEFAULT notification_driver neutron.openstack.common.notifier.rpc_notifier
727
+}
728
+
725 729
 function _configure_neutron_lbaas {
726 730
     neutron_agent_lbaas_configure_common
727 731
     neutron_agent_lbaas_configure_agent