Merge "NSB NFVi BNG test fails to run - stops after one step" into stable/fraser
[yardstick.git] / tools / yardstick-img-dpdk-finalize.sh
index b9ea83e..d8214d5 100644 (file)
@@ -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"