Fixed prepare.sh to create cvp.ubuntu.spt image
The script did not create the cvp.ubuntu.spt image and
was having the error "[Errno 2] No such file or directory:
'ubuntuspt'".
The fix is using downloaded cvp.ubuntu.1604 image file
to create an spt image.
Related-PROD: PROD-36128
Change-Id: I172f5ebc9155913e5ffe8af2ccf7d1808d206763
diff --git a/scripts/prepare.sh b/scripts/prepare.sh
index b79fec7..bde9605 100644
--- a/scripts/prepare.sh
+++ b/scripts/prepare.sh
@@ -47,7 +47,6 @@
cirros3_link=http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
cirros4_link=http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-aarch64-disk.img
ubuntu16_link=https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
-ubuntuspt_link=ubuntuspt
# Volume (2GB)
volume=${name_prefix}.volume
@@ -382,7 +381,9 @@
create_image cirros3
create_image cirros4
create_image ubuntu16
-openstack image create --public --disk-format qcow2 --container-format bare --file ubuntuspt cvp.ubuntu.spt -c id -f value
+# update image name to correct one uploaded
+ubuntuspt_file="ubuntuspt.img"
+openstack image create --public --disk-format qcow2 --container-format bare --file ${ubuntuspt_file} ${ubuntuspt} -c id -f value
### Manifest and fall back to original rc
print_manifest