gate: add a second upstream DNS server

We get transient DNS failures, having a second DNS server should help.

Change-Id: I8307ba0c2b8f2b12eb714dfd8b7034c7645ff288
This commit is contained in:
Chris Wedgwood 2017-09-21 15:05:05 +00:00
parent c587481749
commit 22488a5c14
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,8 @@ function net_resolv_pre_kube {
sudo cp -f /etc/resolv.conf /etc/resolv-pre-kube.conf
sudo rm -f /etc/resolv.conf
cat << EOF | sudo tee /etc/resolv.conf
nameserver ${UPSTREAM_DNS}
nameserver ${UPSTREAM_DNS1}
nameserver ${UPSTREAM_DNS2}
EOF
}

View File

@ -49,7 +49,8 @@ export GLANCE=${GLANCE:-"radosgw"}
export SDN_PLUGIN=${SDN_PLUGIN:-"ovs"}
# Set Upstream DNS
export UPSTREAM_DNS=${UPSTREAM_DNS:-"8.8.8.8"}
export UPSTREAM_DNS1=${UPSTREAM_DNS1:-"8.8.8.8"}
export UPSTREAM_DNS2=${UPSTREAM_DNS2:-"8.8.4.4"}
# Set gate script timeouts
export NODE_START_TIMEOUT=${NODE_START_TIMEOUT:="480"}