Neutron refactor: Clarify use of neutron-metadata-agent

The commit message of 2a242519f7 indicated
that neutron-metadata-agent was the correct name for the metadata
proxy, but parts of the code were not consistent.

Change-Id: I52f08266a169aeb9005c0f84296fc814d05b90d4
This commit is contained in:
Sean M. Collins 2016-05-11 15:07:19 -04:00
parent 4bb4728e6f
commit 1cd2828da4

View File

@ -204,7 +204,7 @@ function configure_neutron_new {
fi
# Metadata
if is_service_enabled neutron-meta; then
if is_service_enabled neutron-metadata-agent; then
cp $NEUTRON_DIR/etc/metadata_agent.ini.sample $NEUTRON_META_CONF
iniset $NEUTRON_META_CONF DEFAULT verbose True
@ -290,7 +290,7 @@ function configure_neutron_nova_new {
iniset $NOVA_CONF DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
if is_service_enabled neutron-meta; then
if is_service_enabled neutron-metadata-agent; then
iniset $NOVA_CONF neutron service_metadata_proxy "True"
fi
@ -425,8 +425,8 @@ function start_neutron_new {
create_neutron_initial_network
fi
fi
if is_service_enabled neutron-meta; then
run_process neutron-meta "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG"
if is_service_enabled neutron-metadata-agent; then
run_process neutron-metadata-agent "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG"
fi
}
@ -442,9 +442,9 @@ function stop_neutron_new {
[ ! -z "$pid" ] && sudo kill -9 $pid
fi
if is_service_enabled neutron-meta; then
if is_service_enabled neutron-metadata-agent; then
sudo pkill -9 -f neutron-ns-metadata-proxy || :
stop_process neutron-meta
stop_process neutron-metadata-agent
fi
}
@ -470,7 +470,7 @@ function _set_config_files {
NEUTRON_CONFIG_ARG+=" --config-file $NEUTRON_L3_CONF"
fi
if is_service_enabled neutron-meta; then
if is_service_enabled neutron-metadata-agent; then
NEUTRON_CONFIG_ARG+=" --config-file $NEUTRON_META_CONF"
fi