Merge "[Devstack] Download both disk and uec images"
This commit is contained in:
commit
7dff244a3b
@ -534,19 +534,27 @@ fi
|
|||||||
|
|
||||||
IRONIC_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-$IRONIC_DEFAULT_IMAGE_NAME}
|
IRONIC_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-$IRONIC_DEFAULT_IMAGE_NAME}
|
||||||
|
|
||||||
if [[ "$IMAGE_URLS" != *"$IRONIC_IMAGE_NAME"* ]]; then
|
# Add link to download queue, ignore if already exist.
|
||||||
|
# TODO(vsaienko) Move to devstack https://review.openstack.org/420656
|
||||||
if [[ -n "$IMAGE_URLS" && ! "$IMAGE_URLS" == *"," ]]; then
|
function add_image_link {
|
||||||
IMAGE_URLS+=","
|
local i_link="$1"
|
||||||
|
if ! [[ "$IMAGE_URLS" =~ "$i_link" ]]; then
|
||||||
|
if [[ -z "$IMAGE_URLS" || "${IMAGE_URLS: -1}" == "," ]]; then
|
||||||
|
IMAGE_URLS+="$i_link"
|
||||||
|
else
|
||||||
|
IMAGE_URLS+=",$i_link"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
if [[ "$IRONIC_BOOT_MODE" == "uefi" ]]; then
|
if [[ "$IRONIC_BOOT_MODE" == "uefi" ]]; then
|
||||||
IMAGE_URLS+="http://download.cirros-cloud.net/daily/20160722/cirros-d160722-x86_64-uec.tar.gz"
|
add_image_link http://download.cirros-cloud.net/daily/20160722/cirros-d160722-x86_64-uec.tar.gz
|
||||||
IMAGE_URLS+=",http://download.cirros-cloud.net/daily/20160722/cirros-d160722-x86_64-disk.img"
|
add_image_link http://download.cirros-cloud.net/daily/20160722/cirros-d160722-x86_64-disk.img
|
||||||
else
|
else
|
||||||
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz"
|
# NOTE (vsaienko) We are going to test mixed drivers/partitions in single setup.
|
||||||
IMAGE_URLS+=",http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img"
|
# Do not restrict downloading image only for specific case. Download both disk and uec images.
|
||||||
fi
|
add_image_link http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz
|
||||||
|
add_image_link http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$IRONIC_TEMPEST_WHOLE_DISK_IMAGE" == "True" ]]; then
|
if [[ "$IRONIC_TEMPEST_WHOLE_DISK_IMAGE" == "True" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user