X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fdovetail%2Fdovetail-run.sh;h=3ad67b60d365385f6ff302e16589886e822ad8b4;hb=74411dd376e1b714a0ea145070b9af1770385cc0;hp=5f462e9c3056cb413fedc65a919bee691cfb42a1;hpb=82fc0ad06c8195e1c0f8b7d6276321fe5ef2daea;p=releng.git diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh index 5f462e9c3..3ad67b60d 100755 --- a/jjb/dovetail/dovetail-run.sh +++ b/jjb/dovetail/dovetail-run.sh @@ -54,6 +54,7 @@ cd ${releng_repo}/modules sudo virtualenv venv source venv/bin/activate sudo pip install -e ./ >/dev/null +sudo pip install netaddr if [[ ${INSTALLER_TYPE} == compass ]]; then options="-u root -p root" @@ -65,6 +66,11 @@ else fi pod_file_dir="/home/opnfv/dovetail/userconfig" +if [ -d ${pod_file_dir} ]; then + sudo rm -rf ${pod_file_dir}/* +else + sudo mkdir -p ${pod_file_dir} +fi cmd="sudo python ${releng_repo}/utils/create_pod_file.py -t ${INSTALLER_TYPE} -i ${INSTALLER_IP} ${options} -f ${pod_file_dir}/pod.yaml" echo ${cmd} ${cmd}