test_nova.sh uses old cirros images

Update test_nova.sh to download Cirros 0.3.1 for config_drive support,
and for consistency with the other Cirros image downloads within this
module.

Closes-Bug: #1275746
(cherry picked from commit eec8af5a74)

Change-Id: I2bd462c03d81caa493410e8c7ae583aa71416993
This commit is contained in:
Chris Ricker
2014-02-03 05:58:52 -08:00
parent 65e776e97f
commit f61fd7337f

View File

@@ -6,10 +6,10 @@ source <%= @rc_file_path %>
<% if @image_type == 'cirros' -%>
# Grab an image. Cirros is a nice small Linux that's easy to deploy
wget --quiet https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
wget --quiet http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
# Add it to glance so that we can use it in Openstack
glance add name='cirros image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.0-x86_64-disk.img
glance add name='cirros image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.1-x86_64-disk.img
# Caputre the Image ID so taht we can call the right UUID for this image
IMAGE_ID=`glance index | grep 'cirros image' | head -1 | awk -F' ' '{print $1}'`