File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ NEUTRON_DHCP_BINARY="neutron-dhcp-agent"
5454NEUTRON_CONF_DIR=/etc/neutron
5555NEUTRON_CONF=$NEUTRON_CONF_DIR /neutron.conf
5656NEUTRON_META_CONF=$NEUTRON_CONF_DIR /metadata_agent.ini
57+ NEUTRON_META_DATA_HOST=${NEUTRON_META_DATA_HOST:- $(ipv6_unquote $SERVICE_HOST )}
5758
5859NEUTRON_DHCP_CONF=$NEUTRON_CONF_DIR /dhcp_agent.ini
5960NEUTRON_L3_CONF=$NEUTRON_CONF_DIR /l3_agent.ini
@@ -296,7 +297,7 @@ function configure_neutron_new {
296297 cp $NEUTRON_DIR /etc/metadata_agent.ini.sample $NEUTRON_META_CONF
297298
298299 iniset $NEUTRON_META_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
299- iniset $NEUTRON_META_CONF DEFAULT nova_metadata_host $SERVICE_HOST
300+ iniset $NEUTRON_META_CONF DEFAULT nova_metadata_host $NEUTRON_META_DATA_HOST
300301 iniset $NEUTRON_META_CONF DEFAULT metadata_workers $API_WORKERS
301302 # TODO(ihrachys) do we really need to set rootwrap for metadata agent?
302303 configure_root_helper_options $NEUTRON_META_CONF
You can’t perform that action at this time.
0 commit comments