List all CIRROS ARCH images in image_list.sh
image_list.sh is used to make a list of all possible images. Loop over both x86_64 and i386 instead of just using the default arch of x86_64 For live migration we are starting to use the i386 arch based images and don't want to cache them like all other images. Change-Id: I47da72a0e9da3689cb085bb43ac6536094445112
This commit is contained in:
parent
37e03c906b
commit
71e82f52bd
@ -9,6 +9,8 @@ source $TOP_DIR/functions
|
|||||||
# dummy in the end position to trigger the fall through case.
|
# dummy in the end position to trigger the fall through case.
|
||||||
DRIVERS="openvz ironic libvirt vsphere xenserver dummy"
|
DRIVERS="openvz ironic libvirt vsphere xenserver dummy"
|
||||||
|
|
||||||
|
CIRROS_ARCHS="x86_64 i386"
|
||||||
|
|
||||||
# Extra variables to trigger getting additional images.
|
# Extra variables to trigger getting additional images.
|
||||||
export ENABLED_SERVICES="h-api,tr-api"
|
export ENABLED_SERVICES="h-api,tr-api"
|
||||||
HEAT_FETCHED_TEST_IMAGE="Fedora-i386-20-20131211.1-sda"
|
HEAT_FETCHED_TEST_IMAGE="Fedora-i386-20-20131211.1-sda"
|
||||||
@ -17,12 +19,15 @@ PRECACHE_IMAGES=True
|
|||||||
# Loop over all the virt drivers and collect all the possible images
|
# Loop over all the virt drivers and collect all the possible images
|
||||||
ALL_IMAGES=""
|
ALL_IMAGES=""
|
||||||
for driver in $DRIVERS; do
|
for driver in $DRIVERS; do
|
||||||
VIRT_DRIVER=$driver
|
for arch in $CIRROS_ARCHS; do
|
||||||
URLS=$(source $TOP_DIR/stackrc && echo $IMAGE_URLS)
|
CIRROS_ARCH=$arch
|
||||||
if [[ ! -z "$ALL_IMAGES" ]]; then
|
VIRT_DRIVER=$driver
|
||||||
ALL_IMAGES+=,
|
URLS=$(source $TOP_DIR/stackrc && echo $IMAGE_URLS)
|
||||||
fi
|
if [[ ! -z "$ALL_IMAGES" ]]; then
|
||||||
ALL_IMAGES+=$URLS
|
ALL_IMAGES+=,
|
||||||
|
fi
|
||||||
|
ALL_IMAGES+=$URLS
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# Make a nice list
|
# Make a nice list
|
||||||
|
Loading…
Reference in New Issue
Block a user