aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-05-02 14:28:51 +0000
committerGerrit Code Review <review@openstack.org>2016-05-02 14:28:51 +0000
commit85134c9e4f666187fcde8bc9e40526867514b85a (patch)
tree574ac61b283c7984a5ce5c395d33a262284ee91a /tools
parentc155758c2d264a3820e5b41de830626edb8e70cb (diff)
parent00720db254f723d85aeaeb843bcaaa7ee4b92c85 (diff)
downloadkolla-85134c9e4f666187fcde8bc9e40526867514b85a.tar.gz
kolla-85134c9e4f666187fcde8bc9e40526867514b85a.zip
Merge "Handle multi Ethernets case in the gate"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/deploy_aio.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh
index 2f0d316fd..17f10eb81 100755
--- a/tools/deploy_aio.sh
+++ b/tools/deploy_aio.sh
@@ -53,6 +53,8 @@ function check_failure {
function write_configs {
mkdir -p /etc/kolla/config
+ PRIVATE_ADDRESS=$(cat /etc/nodepool/node_private)
+ PRIVATE_INTERFACE=$(ip -4 --oneline address | awk -v pattern=${PRIVATE_ADDRESS} '$0 ~ pattern {print $2}')
cat << EOF > /etc/kolla/globals.yml
---
kolla_base_distro: "${KOLLA_BASE}"
@@ -60,7 +62,7 @@ kolla_install_type: "${KOLLA_TYPE}"
kolla_internal_vip_address: "169.254.169.10"
keepalived_virtual_router_id: "${KEEPALIVED_VIRTUAL_ROUTER_ID}"
docker_restart_policy: "never"
-network_interface: "eth0"
+network_interface: "${PRIVATE_INTERFACE}"
neutron_external_interface: "fake_interface"
enable_horizon: "no"
enable_heat: "no"