Bump cirros version
The current version is quite old. Let's use the version currently used in devstack jobs. Change-Id: I2013bb2cba019574efc84045e60da6ce0feaedda
This commit is contained in:
parent
c8c85b1222
commit
753bae7ca2
@ -84,7 +84,7 @@ class openstack_integration::provision (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if $glance {
|
if $glance {
|
||||||
$image_path = "/tmp/openstack/image/cirros-0.5.1-x86_64-disk-${image_format}.img"
|
$image_path = "/tmp/openstack/image/cirros-0.6.2-x86_64-disk-${image_format}.img"
|
||||||
|
|
||||||
glance_image { 'cirros':
|
glance_image { 'cirros':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -328,7 +328,7 @@ class openstack_integration::tempest (
|
|||||||
image_alt_ssh_user => 'cirros',
|
image_alt_ssh_user => 'cirros',
|
||||||
# TODO(emilien) optimization by 1/ using Hiera to configure Glance image source
|
# TODO(emilien) optimization by 1/ using Hiera to configure Glance image source
|
||||||
# and 2/ if running in the gate, use /home/jenkins/cache/files/ cirros image.
|
# and 2/ if running in the gate, use /home/jenkins/cache/files/ cirros image.
|
||||||
img_file => "/tmp/openstack/image/cirros-0.5.1-x86_64-disk-${image_format}.img",
|
img_file => "/tmp/openstack/image/cirros-0.6.2-x86_64-disk-${image_format}.img",
|
||||||
img_disk_format => $image_format,
|
img_disk_format => $image_format,
|
||||||
compute_build_interval => 10,
|
compute_build_interval => 10,
|
||||||
ca_certificates_file => $::openstack_integration::params::ca_bundle_cert_path,
|
ca_certificates_file => $::openstack_integration::params::ca_bundle_cert_path,
|
||||||
|
16
run_tests.sh
16
run_tests.sh
@ -42,8 +42,8 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Cirros Image directory
|
# Cirros Image directory
|
||||||
export IMG_DIR=${IMG_DIR:-'/tmp/openstack/image'}
|
export IMG_DIR=${IMG_DIR:-/tmp/openstack/image}
|
||||||
|
export CIRROS_VERSION=${CIRROS_VERSION:-0.6.2}
|
||||||
|
|
||||||
# if we're running the tests we don't need to write out the facts to facter
|
# if we're running the tests we don't need to write out the facts to facter
|
||||||
# so we can disable it.
|
# so we can disable it.
|
||||||
@ -128,17 +128,17 @@ if [[ ! -e $IMG_DIR ]]; then
|
|||||||
mkdir -p $IMG_DIR
|
mkdir -p $IMG_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ~/cache/files/cirros-0.5.1-x86_64-disk.img ]; then
|
if [ -f ~/cache/files/cirros-${CIRROS_VERSION}-x86_64-disk.img ]; then
|
||||||
# Create a symlink for tempest.
|
# Create a symlink for tempest.
|
||||||
if ! [ -h /tmp/openstack/image/cirros-0.5.1-x86_64-disk.img ] ; then
|
if ! [ -h /tmp/openstack/image/cirros-${CIRROS_VERSION}-x86_64-disk.img ] ; then
|
||||||
ln -s ~/cache/files/cirros-0.5.1-x86_64-disk.img $IMG_DIR
|
ln -s ~/cache/files/cirros-${CIRROS_VERSION}-x86_64-disk.img $IMG_DIR
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
wget http://download.cirros-cloud.net/0.5.1/cirros-0.5.1-x86_64-disk.img -P $IMG_DIR
|
wget http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img -P $IMG_DIR
|
||||||
fi
|
fi
|
||||||
ln -s $IMG_DIR/cirros-0.5.1-x86_64-disk.img $IMG_DIR/cirros-0.5.1-x86_64-disk-qcow2.img
|
ln -s $IMG_DIR/cirros-${CIRROS_VERSION}-x86_64-disk.img $IMG_DIR/cirros-${CIRROS_VERSION}-x86_64-disk-qcow2.img
|
||||||
# NOTE(tkajinam): Prepare raw format image
|
# NOTE(tkajinam): Prepare raw format image
|
||||||
qemu-img convert -f qcow2 -O raw $IMG_DIR/cirros-0.5.1-x86_64-disk.img $IMG_DIR/cirros-0.5.1-x86_64-disk-raw.img
|
qemu-img convert -f qcow2 -O raw $IMG_DIR/cirros-${CIRROS_VERSION}-x86_64-disk.img $IMG_DIR/cirros-${CIRROS_VERSION}-x86_64-disk-raw.img
|
||||||
|
|
||||||
install_puppet
|
install_puppet
|
||||||
PUPPET_FULL_PATH=$(which puppet)
|
PUPPET_FULL_PATH=$(which puppet)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user