X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=tools%2Fyardstick-img-dpdk-finalize.sh;h=d8214d52fe35990cad610b2585e518dad14111ef;hb=ec578c17540cfc57bb1c522046d369c5fdaf584b;hp=b9ea83e1154b5f6ec6d2e84197a6b2bc76660cb5;hpb=199dcdbcaa84a39c60f0f95bbcf687b537e7056a;p=yardstick.git diff --git a/tools/yardstick-img-dpdk-finalize.sh b/tools/yardstick-img-dpdk-finalize.sh index b9ea83e11..d8214d52f 100644 --- a/tools/yardstick-img-dpdk-finalize.sh +++ b/tools/yardstick-img-dpdk-finalize.sh @@ -1,4 +1,13 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2017 ZTE corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + # installs dpdk and pktgen packages on modified image @@ -29,6 +38,9 @@ do fi done +# workaround: Without wait time, the file size of pktgen is zero in the snapshot. +sleep 60 + status=$(nova image-create --poll $stackname $new_image_name) if [[ "$status" =~ "Finished" ]];then echo "$new_image_name finished"