diff options
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/create_glance_image.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ci/create_glance_image.sh b/ci/create_glance_image.sh index 9181a05..bb2a869 100755 --- a/ci/create_glance_image.sh +++ b/ci/create_glance_image.sh @@ -13,7 +13,7 @@ mkdir -p job ARCH="${ARCH:-$(uname -m)}" -IMAGE_NAME="Ubuntu 17.04 ${ARCH}" +IMAGE_NAME="Ubuntu 16.04 ${ARCH}" echo "Checking for ${IMAGE_NAME} in Glance" @@ -24,14 +24,14 @@ then case "${ARCH}" in aarch64) - FILE=ubuntu-17.04-server-cloudimg-arm64.img + FILE=ubuntu-16.04-server-cloudimg-arm64-disk1.img PROPERTIES="--property hw_firmware_type=uefi --property hw_video_model=vga" ;; armhf) - FILE=ubuntu-17.04-server-cloudimg-armhf.img + FILE=ubuntu-16.04-server-cloudimg-armhf-disk1.img ;; x86_64) - FILE=ubuntu-17.04-server-cloudimg-amd64.img + FILE=ubuntu-16.04-server-cloudimg-amd64-disk1.img ;; *) echo "Unsupported architecture: ${ARCH}" @@ -39,7 +39,12 @@ then ;; esac - wget --continue -q "https://cloud-images.ubuntu.com/releases/17.04/release/${FILE}" + echo wget --continue -q "https://cloud-images.ubuntu.com/releases/16.04/release/${FILE}" + wget --continue -q "https://cloud-images.ubuntu.com/releases/16.04/release/${FILE}" + if [ ! -e "${FILE}" ] ; then + echo https://cloud-images.ubuntu.com/releases/16.04/release/${FILE} not found + exit 1 + fi openstack image create "${IMAGE_NAME}" --disk-format qcow2 --public \ ${PROPERTIES} \ --container-format bare --file "${FILE}" |