From: xudan Date: Thu, 11 May 2017 01:43:30 +0000 (-0400) Subject: Bugfix: Error when create pod.yaml file X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F34573%2F3;p=releng.git Bugfix: Error when create pod.yaml file JIRA: DOVETAIL-426 1. ImportError: No module named netaddr 2. rm: cannot remove '/home/opnfv/dovetail/userconfig/*': No such file or directory Change-Id: I81ad703667c798589855fdafc1668644e9a342b9 Signed-off-by: xudan --- diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh index cee9e5929..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" @@ -66,7 +67,7 @@ fi pod_file_dir="/home/opnfv/dovetail/userconfig" if [ -d ${pod_file_dir} ]; then - sudo rm -r ${pod_file_dir}/* + sudo rm -rf ${pod_file_dir}/* else sudo mkdir -p ${pod_file_dir} fi