aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbenchvm/dib/build-image.sh
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2021-05-17 14:01:20 +0200
committerfmenguy <francoisregis.menguy@orange.com>2021-05-25 09:29:27 +0200
commit1e009906b8a25e4f25dacd1a3bab7801bdd57b44 (patch)
tree140742e5d6367d703e183ad6cf9758bb194071cc /nfvbenchvm/dib/build-image.sh
parentd4741875ea90764d89ea8f7193c7210c667d3424 (diff)
NFVBENCH-209 Fix NFVbench loopvm build failed on testpmd step
Change-Id: I0715b46b34b382176f2e06798deeede402b4c2fd Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbenchvm/dib/build-image.sh')
-rwxr-xr-xnfvbenchvm/dib/build-image.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/nfvbenchvm/dib/build-image.sh b/nfvbenchvm/dib/build-image.sh
index f27ce77..fd710c5 100755
--- a/nfvbenchvm/dib/build-image.sh
+++ b/nfvbenchvm/dib/build-image.sh
@@ -49,24 +49,24 @@ set -e
gs_url=artifacts.opnfv.org/nfvbench/images
# image version number
-__version__=0.13
+__version__=0.14
loopvm_image_name=nfvbenchvm_centos-$__version__
generator_image_name=nfvbenchvm_centos-generator-$__version__
function build_image {
# if image exists skip building
echo "Checking if image exists in google storage..."
- # if command -v gsutil >/dev/null; then
- # if gsutil -q stat gs://$gs_url/$1.qcow2; then
- # echo "Image already exists at http://$gs_url/$1.qcow2"
- # echo "Build is skipped"
- # exit 0
- # fi
- # echo "Image does not exist in google storage, starting build..."
- # echo
- # else
- # echo "Cannot check image availability in OPNFV artifact repository (gsutil not available)"
- # fi
+ if command -v gsutil >/dev/null; then
+ if gsutil -q stat gs://$gs_url/$1.qcow2; then
+ echo "Image already exists at http://$gs_url/$1.qcow2"
+ echo "Build is skipped"
+ exit 0
+ fi
+ echo "Image does not exist in google storage, starting build..."
+ echo
+ else
+ echo "Cannot check image availability in OPNFV artifact repository (gsutil not available)"
+ fi
# check if image is already built locally
if [ -f $1.qcow2 ]; then