Merge "Conditional nodepool logic"

This commit is contained in:
Jenkins 2017-07-25 11:03:21 +00:00 committed by Gerrit Code Review
commit 7ff9cd7f12
3 changed files with 24 additions and 25 deletions

View File

@ -1495,9 +1495,6 @@ function setup_nodepool_files {
echo $PRIMARY_NODE_IP > /etc/nodepool/node
echo $PRIMARY_NODE_IP > /etc/nodepool/node_private
echo "NODEPOOL_REGION=$NODEPOOL_REGION" > /etc/nodepool/provider
echo "NODEPOOL_CLOUD=$NODEPOOL_CLOUD" >> /etc/nodepool/provider
log "Setup nodepool files - DONE"
}

View File

@ -16,6 +16,7 @@ fi
source $TRIPLEO_ROOT/tripleo-ci/scripts/oooq_common_functions.sh
if [ -f /etc/nodepool/provider ] ; then
# this sets
# NODEPOOL_PROVIDER (e.g tripleo-test-cloud-rh1)
# NODEPOOL_CLOUD (e.g.tripleo-test-cloud-rh1)
@ -41,6 +42,7 @@ if [ $NODEPOOL_CLOUD == 'tripleo-test-cloud-rh1' ]; then
# can also remove some distro images cached on the images.
sudo rm -rf /opt/git /opt/stack/cache/files/mysql.qcow2 /opt/stack/cache/files/ubuntu-12.04-x86_64.tar.gz
fi
fi
# create logs dir (check if collect-logs doesn't already do this)
mkdir -p $WORKSPACE/logs

View File

@ -3,8 +3,8 @@ set -eux
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
# Mirrors
# NOTE(pabelanger): We have access to AFS mirrors, lets use them.
source /etc/nodepool/provider
source /etc/ci/mirror_info.sh
[ -f /etc/nodepool/provider ] && source /etc/nodepool/provider
[ -f /etc/ci/mirror_info.sh ] && source /etc/ci/mirror_info.sh
source $(dirname $0)/scripts/common_vars.bash
NODEPOOL_MIRROR_HOST=${NODEPOOL_MIRROR_HOST:-mirror.$NODEPOOL_REGION.$NODEPOOL_CLOUD.openstack.org}