Add neutron-metering agent and configuration
This is the equivalent of the q-metering from neutron-legacy Change-Id: Ie2ad6e18cfd6f5cd9af0da30bc36a1cd27e39189
This commit is contained in:
parent
730703a833
commit
8063fee829
11
lib/neutron
11
lib/neutron
@ -242,6 +242,13 @@ function configure_neutron_new {
|
||||
iniset $NEUTRON_CONF DEFAULT ssl_key_file "$NEUTRON_SSL_KEY"
|
||||
fi
|
||||
|
||||
# Metering
|
||||
if is_service_enabled neutron-metering; then
|
||||
source $TOP_DIR/neutron_plugins/services/metering
|
||||
neutron_agent_metering_configure_common
|
||||
neutron_agent_metering_configure_agent
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# configure_neutron_rootwrap() - configure Neutron's rootwrap
|
||||
@ -428,6 +435,10 @@ function start_neutron_new {
|
||||
if is_service_enabled neutron-metadata-agent; then
|
||||
run_process neutron-metadata-agent "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG"
|
||||
fi
|
||||
|
||||
if is_service_enabled neutron-metering; then
|
||||
run_process neutron-metering "$AGENT_METERING_BINARY --config-file $NEUTRON_CONF --config-file $METERING_AGENT_CONF_FILENAME"
|
||||
fi
|
||||
}
|
||||
|
||||
# stop_neutron() - Stop running processes (non-screen)
|
||||
|
Loading…
x
Reference in New Issue
Block a user