| ... | ... |
@@ -55,7 +55,7 @@ BUILD_INTERVAL=1 |
| 55 | 55 |
BUILD_TIMEOUT=196 |
| 56 | 56 |
|
| 57 | 57 |
|
| 58 |
-BOTO_MATERIALS_PATH="$FILES/images/s3-materials/cirros-0.3.1" |
|
| 58 |
+BOTO_MATERIALS_PATH="$FILES/images/s3-materials/cirros-${CIRROS_VERSION}"
|
|
| 59 | 59 |
|
| 60 | 60 |
# Cinder/Volume variables |
| 61 | 61 |
TEMPEST_VOLUME_DRIVER=${TEMPEST_VOLUME_DRIVER:-default}
|
| ... | ... |
@@ -305,9 +305,9 @@ function configure_tempest {
|
| 305 | 305 |
iniset $TEMPEST_CONFIG boto ec2_url "http://$SERVICE_HOST:8773/services/Cloud" |
| 306 | 306 |
iniset $TEMPEST_CONFIG boto s3_url "http://$SERVICE_HOST:${S3_SERVICE_PORT:-3333}"
|
| 307 | 307 |
iniset $TEMPEST_CONFIG boto s3_materials_path "$BOTO_MATERIALS_PATH" |
| 308 |
- iniset $TEMPEST_CONFIG boto ari_manifest cirros-0.3.1-x86_64-initrd.manifest.xml |
|
| 309 |
- iniset $TEMPEST_CONFIG boto ami_manifest cirros-0.3.1-x86_64-blank.img.manifest.xml |
|
| 310 |
- iniset $TEMPEST_CONFIG boto aki_manifest cirros-0.3.1-x86_64-vmlinuz.manifest.xml |
|
| 308 |
+ iniset $TEMPEST_CONFIG boto ari_manifest cirros-${CIRROS_VERSION}-x86_64-initrd.manifest.xml
|
|
| 309 |
+ iniset $TEMPEST_CONFIG boto ami_manifest cirros-${CIRROS_VERSION}-x86_64-blank.img.manifest.xml
|
|
| 310 |
+ iniset $TEMPEST_CONFIG boto aki_manifest cirros-${CIRROS_VERSION}-x86_64-vmlinuz.manifest.xml
|
|
| 311 | 311 |
iniset $TEMPEST_CONFIG boto instance_type "$boto_instance_type" |
| 312 | 312 |
iniset $TEMPEST_CONFIG boto http_socket_timeout 30 |
| 313 | 313 |
iniset $TEMPEST_CONFIG boto ssh_user ${DEFAULT_INSTANCE_USER:-cirros}
|
| ... | ... |
@@ -327,7 +327,10 @@ function configure_tempest {
|
| 327 | 327 |
fi |
| 328 | 328 |
|
| 329 | 329 |
# Scenario |
| 330 |
- iniset $TEMPEST_CONFIG scenario img_dir "$FILES/images/cirros-0.3.1-x86_64-uec" |
|
| 330 |
+ iniset $TEMPEST_CONFIG scenario img_dir "$FILES/images/cirros-${CIRROS_VERSION}-x86_64-uec"
|
|
| 331 |
+ iniset $TEMPEST_CONFIG scenario ami_img_file "cirros-${CIRROS_VERSION}-x86_64-blank.img"
|
|
| 332 |
+ iniset $TEMPEST_CONFIG scenario ari_img_file "cirros-${CIRROS_VERSION}-x86_64-initrd"
|
|
| 333 |
+ iniset $TEMPEST_CONFIG scenario aki_img_file "cirros-${CIRROS_VERSION}-x86_64-vmlinuz"
|
|
| 331 | 334 |
|
| 332 | 335 |
# Large Ops Number |
| 333 | 336 |
iniset $TEMPEST_CONFIG scenario large_ops_number ${TEMPEST_LARGE_OPS_NUMBER:-0}
|
| ... | ... |
@@ -408,8 +411,8 @@ function install_tempest {
|
| 408 | 408 |
|
| 409 | 409 |
# init_tempest() - Initialize ec2 images |
| 410 | 410 |
function init_tempest {
|
| 411 |
- local base_image_name=cirros-0.3.1-x86_64 |
|
| 412 |
- # /opt/stack/devstack/files/images/cirros-0.3.1-x86_64-uec |
|
| 411 |
+ local base_image_name=cirros-${CIRROS_VERSION}-x86_64
|
|
| 412 |
+ # /opt/stack/devstack/files/images/cirros-${CIRROS_VERSION}-x86_64-uec
|
|
| 413 | 413 |
local image_dir="$FILES/images/${base_image_name}-uec"
|
| 414 | 414 |
local kernel="$image_dir/${base_image_name}-vmlinuz"
|
| 415 | 415 |
local ramdisk="$image_dir/${base_image_name}-initrd"
|
| ... | ... |
@@ -305,12 +305,14 @@ esac |
| 305 | 305 |
# glance as a disk image. If it ends in .gz, it is uncompressed first. |
| 306 | 306 |
# example: |
| 307 | 307 |
# http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-armel-disk1.img |
| 308 |
-# http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz |
|
| 308 |
+# http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-rootfs.img.gz
|
|
| 309 | 309 |
# * OpenVZ image: |
| 310 | 310 |
# OpenVZ uses its own format of image, and does not support UEC style images |
| 311 | 311 |
|
| 312 | 312 |
#IMAGE_URLS="http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-11.2_2.6.35-15_1.tar.gz" # old ttylinux-uec image |
| 313 |
-#IMAGE_URLS="http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img" # cirros full disk image |
|
| 313 |
+#IMAGE_URLS="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img" # cirros full disk image
|
|
| 314 |
+ |
|
| 315 |
+CIRROS_VERSION=${CIRROS_VERSION:-"0.3.2"}
|
|
| 314 | 316 |
|
| 315 | 317 |
# Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of |
| 316 | 318 |
# which may be set in ``localrc``. Also allow ``DEFAULT_IMAGE_NAME`` and |
| ... | ... |
@@ -322,11 +324,11 @@ case "$VIRT_DRIVER" in |
| 322 | 322 |
libvirt) |
| 323 | 323 |
case "$LIBVIRT_TYPE" in |
| 324 | 324 |
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc |
| 325 |
- DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-rootfs}
|
|
| 326 |
- IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz"};;
|
|
| 325 |
+ DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-x86_64-rootfs}
|
|
| 326 |
+ IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-rootfs.img.gz"};;
|
|
| 327 | 327 |
*) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
| 328 |
- DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec}
|
|
| 329 |
- IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;
|
|
| 328 |
+ DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-x86_64-uec}
|
|
| 329 |
+ IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz"};;
|
|
| 330 | 330 |
esac |
| 331 | 331 |
;; |
| 332 | 332 |
vsphere) |
| ... | ... |
@@ -336,8 +338,8 @@ case "$VIRT_DRIVER" in |
| 336 | 336 |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-disk}
|
| 337 | 337 |
IMAGE_URLS=${IMAGE_URLS:-"https://github.com/downloads/citrix-openstack/warehouse/cirros-0.3.0-x86_64-disk.vhd.tgz"};;
|
| 338 | 338 |
*) # Default to Cirros with kernel, ramdisk and disk image |
| 339 |
- DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec}
|
|
| 340 |
- IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;
|
|
| 339 |
+ DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-x86_64-uec}
|
|
| 340 |
+ IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz"};;
|
|
| 341 | 341 |
esac |
| 342 | 342 |
|
| 343 | 343 |
# Use 64bit fedora image if heat is enabled |
| ... | ... |
@@ -97,7 +97,7 @@ Of course, use real passwords if this machine is exposed. |
| 97 | 97 |
# Download a vhd and a uec image |
| 98 | 98 |
IMAGE_URLS="\ |
| 99 | 99 |
https://github.com/downloads/citrix-openstack/warehouse/cirros-0.3.0-x86_64-disk.vhd.tgz,\ |
| 100 |
- http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz" |
|
| 100 |
+ http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz" |
|
| 101 | 101 |
|
| 102 | 102 |
# Explicitly set virt driver |
| 103 | 103 |
VIRT_DRIVER=xenserver |