Bugfix: No cirros-0.3.5-x86_64-disk.img 19/39719/1
authorxudan <xudan16@huawei.com>
Mon, 21 Aug 2017 06:33:56 +0000 (02:33 -0400)
committerxudan <xudan16@huawei.com>
Mon, 21 Aug 2017 06:33:56 +0000 (02:33 -0400)
JIRA: DOVETAIL-487

1. Functest cvp.0.5.0 doesn't have cirros image in its docker container.
2. Jobs need to download cirros-0.3.5-x86_64-disk.img and store it in
   $DOVETAIL_HOME/pre_config

Change-Id: I12e4edb561ce21f813adc968d223fb0827529f7b
Signed-off-by: xudan <xudan16@huawei.com>
jjb/dovetail/dovetail-run.sh

index a078c8f..7bbecc1 100755 (executable)
@@ -126,6 +126,10 @@ fi
 echo "Download image ubuntu-16.04-server-cloudimg-amd64-disk1.img ..."
 wget -q -nc http://artifacts.opnfv.org/sdnvpn/ubuntu-16.04-server-cloudimg-amd64-disk1.img -P ${DOVETAIL_CONFIG}
 
+# functest needs to download this image first before running
+echo "Download image cirros-0.3.5-x86_64-disk.img ..."
+wget -q -nc http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img -P ${DOVETAIL_CONFIG}
+
 opts="--privileged=true -id"
 
 docker_volume="-v /var/run/docker.sock:/var/run/docker.sock"