MultiHost support

For the nodes other than service host, only enable zun-compute.
q-agt and kuryr is also required to provide network connection,
which need to be specified in local.conf.

Change-Id: I78055c75ad545cf8809dae973d1180dce2ecf77f
Closes-Bug: #1691606
This commit is contained in:
Yongfeng Du 2017-05-18 12:00:08 +08:00
parent 9f0609016f
commit 3e0cce8f49
2 changed files with 8 additions and 4 deletions

View File

@ -265,7 +265,7 @@ function create_zun_conf {
iniset $ZUN_CONF etcd etcd_port "$ZUN_ETCD_PORT"
iniset $ZUN_CONF websocket_proxy wsproxy_port "$ZUN_WEBSOCKET_PROXY_PORT"
iniset $ZUN_CONF websocket_proxy wsproxy_host "$ZUN_WEBSOCKET_PROXY_IP"
iniset $ZUN_CONF api host_ip 0.0.0.0
iniset $ZUN_CONF api host_ip "$ZUN_SERVICE_HOST"
iniset $ZUN_CONF api port "$ZUN_SERVICE_PORT"
iniset $ZUN_CONF oslo_policy policy_file $ZUN_POLICY_JSON

View File

@ -16,9 +16,13 @@
# OVS_PHYSICAL_BRIDGE=br-ex
# Enable Zun services
enable_service zun-api
enable_service zun-compute
enable_service zun-wsproxy
if [[ ${HOST_IP} == ${SERVICE_HOST} ]]; then
enable_service zun-api
enable_service zun-compute
enable_service zun-wsproxy
else
enable_service zun-compute
fi
if [[ ${ZUN_DB_TYPE} == "etcd" ]]; then
enable_service zun-etcd