From f0fbd9e36520252e427d4a76091d27af5db6feb1 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Thu, 6 Dec 2018 16:33:35 -0500 Subject: [PATCH] Save service image URL properly Put the image name in a file for retrieval by jobs that need it so they don't have to play (buggy) tricks with git to get it. Also ensure that debootstrap is installed. Depends-on: https://review.openstack.org/623551 Closes-bug: #1807969 Change-Id: I6dfeb5fb236579aa1755c6806f9ffc397690fba6 --- bin/manila-image-create | 8 ++++---- tools/gate/build-images | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/manila-image-create b/bin/manila-image-create index 72412c2..d86455c 100755 --- a/bin/manila-image-create +++ b/bin/manila-image-create @@ -160,16 +160,16 @@ is_installed() { need_required_packages() { case "$platform" in "ubuntu") - package_list="qemu kpartx" + package_list="qemu kpartx debootstrap" ;; "fedora") - package_list="qemu-img kpartx" + package_list="qemu-img kpartx debootstrap" ;; "opensuse") - package_list="qemu kpartx" + package_list="qemu kpartx debootstrap" ;; "rhel" | "centos") - package_list="qemu-kvm qemu-img kpartx" + package_list="qemu-kvm qemu-img kpartx debootstrap" ;; *) err "Unknown platform '$platform' for the package list.\nAborting" diff --git a/tools/gate/build-images b/tools/gate/build-images index 3487de3..8a7d90d 100755 --- a/tools/gate/build-images +++ b/tools/gate/build-images @@ -25,3 +25,5 @@ if [[ $PUT_IMAGE_TO_LOCAL_WEBSERVER != [Ff][Aa][Ll][Ss][Ee] ]]; then echo "Image with name '$image_name' is available now at \ http://localhost:80/public_html/$image_name" fi + +echo $image_name > ./IMAGE_NAME