Set default value for host

We have two ovs agent running in our DevstackDomU, one for
compute node (q-domua) and one for controller node (q-agt),
actually, we should configure different values for item
[DEFAULT] host = XXX in ml2_conf.ini.domU which is for q-domua
and also in nova.conf, this patch is to re-configure th
default value

Change-Id: Ifac47e84ad3f6469cd12ba4c8ba7a3e2101750ae
This commit is contained in:
Huan Xie
2017-02-13 21:15:11 -08:00
parent daf2dfc7c7
commit beb6df6390

View File

@@ -70,6 +70,10 @@ if [[ "$MODE" == "stack" ]]; then
post-config)
# Called after the layer 1 and 2 services have been configured.
# All configuration files for enabled services should exist at this point.
local ssh_dom0=$(get_dom0_ssh)
local dom0_hostname=`$ssh_dom0 "hostname"`
iniset $NOVA_CONF DEFAULT host "$dom0_hostname-nova"
iniset $NEUTRON_CORE_PLUGIN_CONF.domU DEFAULT host "$dom0_hostname-nova"
# TODO(huanxie): when reverse q-agt/q-domua merged, q-domua is XS specific part
# Configure XenServer neutron specific items for q-domua
# ovs native mode