Commit f1580b8b authored by David Johnson's avatar David Johnson

Fix a bug in the default OpenStack profile Neutron metadata agent config.

 NB: fix a "bug" in the default profile configuration of the metadata agent.
 This manifests under high load; the MDA calls to neutron via API if the
 internal RPC fails.  The profile wasn't setting this correctly; it's not
 in the install instructions.
parent 304d80b2
Pipeline #1911 passed with stage
in 2 seconds
......@@ -126,6 +126,22 @@ crudini --set /etc/neutron/l3_agent.ini \
crudini --set /etc/neutron/metering_agent.ini \
capnet bridge_mappings "$bridge_mappings"
##
## NB: fix a "bug" in the default profile configuration of the metadata agent.
## This manifests under high load; the MDA calls to neutron via API if the
## internal RPC fails. The profile wasn't setting this correctly; it's not
## in the install instructions.
##
project=`crudini --get /etc/neutron/metadata_agent.ini DEFAULT project_name`
username=`crudini --get /etc/neutron/metadata_agent.ini DEFAULT username`
password=`crudini --get /etc/neutron/metadata_agent.ini DEFAULT password`
crudini --set /etc/neutron/metadata_agent.ini DEFAULT \
auth_url http://$CONTROLLER:35357/v2.0
crudini --set /etc/neutron/metadata_agent.ini DEFAULT admin_tenant_name $project
crudini --set /etc/neutron/metadata_agent.ini DEFAULT admin_user $username
crudini --set /etc/neutron/metadata_agent.ini DEFAULT admin_password $password
##
## Ok, restart Neutron Capnet ML2 plugin and other Neutron agents.
##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment