Handle multi Ethernets case in the gate
rax-iad node has two Ethernets, but others not. Detect the private Ethernet by using script. Closes-Bug: #1561563 Change-Id: I7c5d241f2b1a21f97512e52c487d875dd270011b
This commit is contained in:
parent
2705d67fa1
commit
00720db254
@ -52,13 +52,15 @@ function check_failure {
|
|||||||
function write_configs {
|
function write_configs {
|
||||||
mkdir -p /etc/kolla/config
|
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
|
cat << EOF > /etc/kolla/globals.yml
|
||||||
---
|
---
|
||||||
kolla_base_distro: "${KOLLA_BASE}"
|
kolla_base_distro: "${KOLLA_BASE}"
|
||||||
kolla_install_type: "${KOLLA_TYPE}"
|
kolla_install_type: "${KOLLA_TYPE}"
|
||||||
kolla_internal_vip_address: "169.254.169.10"
|
kolla_internal_vip_address: "169.254.169.10"
|
||||||
docker_restart_policy: "never"
|
docker_restart_policy: "never"
|
||||||
network_interface: "eth0"
|
network_interface: "${PRIVATE_INTERFACE}"
|
||||||
neutron_external_interface: "fake_interface"
|
neutron_external_interface: "fake_interface"
|
||||||
enable_horizon: "no"
|
enable_horizon: "no"
|
||||||
enable_heat: "no"
|
enable_heat: "no"
|
||||||
|
Loading…
Reference in New Issue
Block a user