The commit message of 2a242519f71e86416e78541826cac2b54fcd04a5 indicated
that neutron-metadata-agent was the correct name for the metadata
proxy, but parts of the code were not consistent.
Change-Id: I52f08266a169aeb9005c0f84296fc814d05b90d4
| ... | ... |
@@ -204,7 +204,7 @@ function configure_neutron_new {
|
| 204 | 204 |
fi |
| 205 | 205 |
|
| 206 | 206 |
# Metadata |
| 207 |
- if is_service_enabled neutron-meta; then |
|
| 207 |
+ if is_service_enabled neutron-metadata-agent; then |
|
| 208 | 208 |
cp $NEUTRON_DIR/etc/metadata_agent.ini.sample $NEUTRON_META_CONF |
| 209 | 209 |
|
| 210 | 210 |
iniset $NEUTRON_META_CONF DEFAULT verbose True |
| ... | ... |
@@ -290,7 +290,7 @@ function configure_neutron_nova_new {
|
| 290 | 290 |
|
| 291 | 291 |
iniset $NOVA_CONF DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver |
| 292 | 292 |
|
| 293 |
- if is_service_enabled neutron-meta; then |
|
| 293 |
+ if is_service_enabled neutron-metadata-agent; then |
|
| 294 | 294 |
iniset $NOVA_CONF neutron service_metadata_proxy "True" |
| 295 | 295 |
fi |
| 296 | 296 |
|
| ... | ... |
@@ -425,8 +425,8 @@ function start_neutron_new {
|
| 425 | 425 |
create_neutron_initial_network |
| 426 | 426 |
fi |
| 427 | 427 |
fi |
| 428 |
- if is_service_enabled neutron-meta; then |
|
| 429 |
- run_process neutron-meta "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG" |
|
| 428 |
+ if is_service_enabled neutron-metadata-agent; then |
|
| 429 |
+ run_process neutron-metadata-agent "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG" |
|
| 430 | 430 |
fi |
| 431 | 431 |
} |
| 432 | 432 |
|
| ... | ... |
@@ -442,9 +442,9 @@ function stop_neutron_new {
|
| 442 | 442 |
[ ! -z "$pid" ] && sudo kill -9 $pid |
| 443 | 443 |
fi |
| 444 | 444 |
|
| 445 |
- if is_service_enabled neutron-meta; then |
|
| 445 |
+ if is_service_enabled neutron-metadata-agent; then |
|
| 446 | 446 |
sudo pkill -9 -f neutron-ns-metadata-proxy || : |
| 447 |
- stop_process neutron-meta |
|
| 447 |
+ stop_process neutron-metadata-agent |
|
| 448 | 448 |
fi |
| 449 | 449 |
} |
| 450 | 450 |
|
| ... | ... |
@@ -470,7 +470,7 @@ function _set_config_files {
|
| 470 | 470 |
NEUTRON_CONFIG_ARG+=" --config-file $NEUTRON_L3_CONF" |
| 471 | 471 |
fi |
| 472 | 472 |
|
| 473 |
- if is_service_enabled neutron-meta; then |
|
| 473 |
+ if is_service_enabled neutron-metadata-agent; then |
|
| 474 | 474 |
NEUTRON_CONFIG_ARG+=" --config-file $NEUTRON_META_CONF" |
| 475 | 475 |
fi |
| 476 | 476 |
|