Upgrade yardstick VM image from Ubuntu 14.04 to 16.04 73/22873/7
authorJingLu5 <lvjing5@huawei.com>
Fri, 4 Nov 2016 07:21:50 +0000 (15:21 +0800)
committerJingLu5 <lvjing5@huawei.com>
Wed, 9 Nov 2016 03:54:24 +0000 (11:54 +0800)
JIRA: YARDSTICK-365

This patch upgrades the base Ubuntu version of Yardstick VM image from
trusty(14.04) to xenial(16.04).

If you still want to use Ubuntu 14.04 to build Yardstick custom image you can
use command:
    sudo ./tools/yardstick-img-modify tools/ubuntu-server-cloudimg-modify.sh trusty

And now the "yardstick-trusty-server" is rename as "yardstick-image".

Change-Id: I0765f3aee2d17eea1ad2257d0f576cdb9ef2b18d
Signed-off-by: JingLu5 <lvjing5@huawei.com>
34 files changed:
samples/background-task.yaml
samples/cachestat.yaml
samples/cyclictest.yaml
samples/fio-template.yaml
samples/fio.yaml
samples/iperf3-jitter.yaml
samples/iperf3.yaml
samples/lmbench.yaml
samples/lmbench_cache.yaml
samples/memload.yaml
samples/netperf.yaml
samples/netutilization.yaml
samples/perf.yaml
samples/pktgen.yaml
samples/ramspeed.yaml
samples/unixbench.yaml
tests/ci/clean_images.sh
tests/ci/load_images.sh
tests/opnfv/test_cases/opnfv_yardstick_tc001.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc005.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc008.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc009.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc010.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc011.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc012.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc014.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc037.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc038.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc069.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc070.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc071.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc072.yaml
tools/yardstick-img-lxd-modify
tools/yardstick-img-modify

index a844c2d..11cfdd5 100644 (file)
@@ -39,7 +39,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 5786efa..d736793 100644 (file)
@@ -18,7 +18,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index cb85dec..eaf7489 100644 (file)
@@ -33,7 +33,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
   servers:
index ba710d9..00c35ce 100644 (file)
@@ -28,7 +28,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
   servers:
index e1f5e6d..5ccbc19 100644 (file)
@@ -37,7 +37,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
   servers:
index c211571..366a571 100644 (file)
@@ -23,7 +23,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 72f2609..6741c76 100644 (file)
@@ -21,7 +21,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 311770c..595a393 100644 (file)
@@ -48,7 +48,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 7a22cf1..bf5086b 100644 (file)
@@ -26,7 +26,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 87d7277..5e98898 100644 (file)
@@ -20,7 +20,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 4d7f7a7..0dd5634 100755 (executable)
@@ -46,7 +46,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 598a5af..794342d 100644 (file)
@@ -19,7 +19,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 541f846..b8979b5 100644 (file)
@@ -30,7 +30,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index ddafb27..6acb8ab 100644 (file)
@@ -38,7 +38,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 7e1b1aa..e754fc9 100644 (file)
@@ -25,7 +25,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 825fd76..b7ab881 100644 (file)
@@ -21,7 +21,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 05f68a7..b194216 100755 (executable)
@@ -19,7 +19,7 @@ cleanup()
         return
     fi
 
-    for image in $(glance image-list | grep -e cirros-0.3.3 -e yardstick-trusty-server -e Ubuntu-14.04 \
+    for image in $(glance image-list | grep -e cirros-0.3.3 -e yardstick-image -e Ubuntu-14.04 \
         -e yardstick-vivid-kernel | awk '{print $2}'); do
         echo "Deleting image $image..."
         glance image-delete $image || true
index 49b9727..54a145f 100755 (executable)
@@ -90,14 +90,14 @@ load_yardstick_image()
 
     if [[ "$DEPLOY_SCENARIO" == *"-lxd-"* ]]; then
         output=$(eval glance --os-image-api-version 1 image-create \
-            --name yardstick-trusty-server \
+            --name yardstick-image \
             --is-public true --disk-format root-tar \
             --container-format bare \
             $EXTRA_PARAMS \
             --file $RAW_IMAGE)
     else
         output=$(eval glance --os-image-api-version 1 image-create \
-            --name yardstick-trusty-server \
+            --name yardstick-image \
             --is-public true --disk-format qcow2 \
             --container-format bare \
             $EXTRA_PARAMS \
@@ -203,8 +203,8 @@ create_nova_flavor()
 
 main()
 {
-    QCOW_IMAGE="/tmp/workspace/yardstick/yardstick-trusty-server.img"
-    RAW_IMAGE="/tmp/workspace/yardstick/yardstick-trusty-server.tar.gz"
+    QCOW_IMAGE="/tmp/workspace/yardstick/yardstick-image.img"
+    RAW_IMAGE="/tmp/workspace/yardstick/yardstick-image.tar.gz"
 
     build_yardstick_image
     load_yardstick_image
index 899ee96..aa2980f 100644 (file)
@@ -31,7 +31,7 @@ scenarios:
 
 context:
   name: yardstick
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 6e50157..732d73a 100644 (file)
@@ -35,7 +35,7 @@ scenarios:
 
 context:
   name: yardstick-TC005
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: m1.small
   user: ubuntu
 
index 1cec80f..a2f5f3a 100644 (file)
@@ -37,7 +37,7 @@ scenarios:
 
 context:
   name: yardstick-TC008
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 82a55d7..f9fa1b7 100644 (file)
@@ -32,7 +32,7 @@ scenarios:
 
 context:
   name: yardstick-TC009
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index aeb1854..f64968c 100644 (file)
@@ -25,7 +25,7 @@ scenarios:
 
 context:
   name: yardstick-TC010
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: m1.small
   user: ubuntu
 
index 5d21e28..4cd3119 100644 (file)
@@ -23,7 +23,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 3bdb8cb..a86943a 100644 (file)
@@ -26,7 +26,7 @@ scenarios:
 
 context:
   name: demo
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: m1.small
   user: ubuntu
 
index 648657f..1ac0f29 100644 (file)
@@ -19,7 +19,7 @@ scenarios:
 
 context:
   name: yardstick-TC014
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
@@ -29,4 +29,4 @@ context:
 
   networks:
     test:
-      cidr: '10.0.1.0/24'
\ No newline at end of file
+      cidr: '10.0.1.0/24'
index 5e2177a..cd42098 100644 (file)
@@ -64,7 +64,7 @@ scenarios:
 
 context:
   name: yardstick-TC037
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 128f940..c2e5b40 100644 (file)
@@ -64,7 +64,7 @@ scenarios:
 
 context:
   name: yardstick-TC038
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 637e160..dcc34d8 100644 (file)
@@ -25,7 +25,7 @@ scenarios:
 
 context:
   name: yardstick-TC069
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 28b28b9..931587b 100644 (file)
@@ -66,7 +66,7 @@ scenarios:
 
 context:
   name: yardstick-TC070
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 6440109..6f006ee 100644 (file)
@@ -64,7 +64,7 @@ scenarios:
 
 context:
   name: yardstick-TC071
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index f3e6d4c..e1fa331 100644 (file)
@@ -66,7 +66,7 @@ scenarios:
 
 context:
   name: yardstick-TC072
-  image: yardstick-trusty-server
+  image: yardstick-image
   flavor: yardstick-flavor
   user: ubuntu
 
index 3119455..4ca4eb4 100755 (executable)
@@ -32,21 +32,22 @@ die() {
     exit 1
 }
 
-test $# -eq 1 || die "no image specific script as argument"
+test $# -eq 1 -o $# -eq 2 || die "no image specific script as argument"
 test $(id -u) -eq 0 || die "should invoke using sudo"
 
 cmd=$1
+RELEASE=$2
 test -x $cmd
 mountdir="/mnt/yardstick"
 workspace=${WORKSPACE:-"/tmp/workspace/yardstick"}
 host=${HOST:-"cloud-images.ubuntu.com"}
-release=${RELEASE:-"trusty"}
+release=${RELEASE:-"xenial"}
 image_path="${release}/current/${release}-server-cloudimg-amd64-root.tar.gz"
 image_url=${IMAGE_URL:-"https://${host}/${image_path}"}
 md5sums_path="${release}/current/MD5SUMS"
 md5sums_url=${MD5SUMS_URL:-"https://${host}/${md5sums_path}"}
 
-imgfile="${workspace}/yardstick-${release}-server.tar.gz"
+imgfile="${workspace}/yardstick-image.tar.gz"
 filename=$(basename $image_url)
 
 # download and checksum base image, conditionally if local copy is outdated
index 07f10b3..c28e2ad 100755 (executable)
@@ -32,21 +32,22 @@ die() {
     exit 1
 }
 
-test $# -eq 1 || die "no image specific script as argument"
+test $# -eq 1 -o $# -eq 2 || die "no image specific script as argument"
 test $(id -u) -eq 0 || die "should invoke using sudo"
 
 cmd=$1
+RELEASE=$2
 test -x $cmd
 mountdir="/mnt/yardstick"
 workspace=${WORKSPACE:-"/tmp/workspace/yardstick"}
 host=${HOST:-"cloud-images.ubuntu.com"}
-release=${RELEASE:-"trusty"}
+release=${RELEASE:-"xenial"}
 image_path="${release}/current/${release}-server-cloudimg-${YARD_IMG_ARCH}-disk1.img"
 image_url=${IMAGE_URL:-"https://${host}/${image_path}"}
 md5sums_path="${release}/current/MD5SUMS"
 md5sums_url=${MD5SUMS_URL:-"https://${host}/${md5sums_path}"}
 
-imgfile="${workspace}/yardstick-${release}-server.img"
+imgfile="${workspace}/yardstick-image.img"
 raw_imgfile="${workspace}/yardstick-${release}-server.raw"
 filename=$(basename $image_url)