From a9286886e413fbf055284dc167a7640a5a79b83c Mon Sep 17 00:00:00 2001 From: "Sean M. Collins" Date: Mon, 20 Jun 2016 13:23:11 -0400 Subject: [PATCH] Neutron: include metering service plugin in conf The common code for metering calls _neutron_service_plugin_class_add, which despite the description only just appends a service plugin to $Q_SERVICE_PLUGIN_CLASSES - it doesn't actually write it into a configuration file. So for now, read out the configuration, and append metering to it, then write it back out. Change-Id: Ice96cca8b43dcd54f2aa81461000a4597db8260d --- lib/neutron | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/neutron b/lib/neutron index ad68d8e62f..5cab8e1716 100644 --- a/lib/neutron +++ b/lib/neutron @@ -245,6 +245,12 @@ function configure_neutron_new { source $TOP_DIR/lib/neutron_plugins/services/metering neutron_agent_metering_configure_common neutron_agent_metering_configure_agent + # TODO(sc68cal) hack because we don't pass around + # $Q_SERVICE_PLUGIN_CLASSES like -legacy does + local plugins="" + plugins=$(iniget $NEUTRON_CONF DEFAULT service_plugins) + plugins+=",metering" + iniset $NEUTRON_CONF DEFAULT service_plugins $plugins fi }