Set host=${dom0_hostname} in related conf

As we have two ovs agent running in domU, we must set different
value for host configuration item. Currently, its value is
${dom0_hostname}-nova for nova, neutron and ceilometer service,
but we found tempest is using hypervisor's name when try to live
migrate VM, see bug https://bugs.launchpad.net/tempest/+bug/1716623.
This patch is to change our devstack plugin to set host item
with value ${dom0_hostname} for n-cpu, q-domua and ceilometer,
then it's align with hypervisor's name

Closes-bug: 1716623
Change-Id: I6a5b77a91898b602ec328afad6567973a2132759
This commit is contained in:
Huan Xie 2017-09-13 00:46:22 +00:00
parent 0721f61758
commit d1dec09446
1 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ function config_ovs_agent {
# Configure q-domua, use Dom0's hostname and concat suffix
local ssh_dom0=$(get_dom0_ssh)
local dom0_hostname=`$ssh_dom0 "hostname"`
iniset $NEUTRON_CORE_PLUGIN_CONF.domU DEFAULT host "${dom0_hostname}-nova"
iniset $NEUTRON_CORE_PLUGIN_CONF.domU DEFAULT host "${dom0_hostname}"
# Configure xenapi for q-domua to use its xenserver rootwrap daemon
iniset $NEUTRON_CORE_PLUGIN_CONF.domU xenapi connection_url "$XENAPI_CONNECTION_URL"
@ -187,14 +187,14 @@ function config_nova_compute {
# Configure nova-compute, use Dom0's hostname and concat suffix
local ssh_dom0=$(get_dom0_ssh)
local dom0_hostname=`$ssh_dom0 "hostname"`
iniset $NOVA_CONF DEFAULT host "${dom0_hostname}-nova"
iniset $NOVA_CONF DEFAULT host "${dom0_hostname}"
}
function config_ceilometer {
if is_service_enabled ceilometer-acompute; then
local ssh_dom0=$(get_dom0_ssh)
local dom0_hostname=`$ssh_dom0 "hostname"`
iniset $CEILOMETER_CONF DEFAULT host "${dom0_hostname}-nova"
iniset $CEILOMETER_CONF DEFAULT host "${dom0_hostname}"
iniset $CEILOMETER_CONF DEFAULT hypervisor_inspector xenapi
iniset $CEILOMETER_CONF xenapi connection_url "$XENAPI_CONNECTION_URL"