This reverts commit b4233fbc4e24f5e1754a33eb3740b39356c88e7a.
This is breaking grenade.
Change-Id: I6522a9706464ce9bdf74f154876cbd0dc71fe122
Closes-Bug: #1615241
| ... | ... |
@@ -462,9 +462,12 @@ function configure_tempest {
|
| 462 | 462 |
fi |
| 463 | 463 |
|
| 464 | 464 |
# Scenario |
| 465 |
- SCENARIO_IMAGE_DIR=${SCENARIO_IMAGE_DIR:-$FILES}
|
|
| 465 |
+ SCENARIO_IMAGE_DIR=${SCENARIO_IMAGE_DIR:-$FILES/images/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
|
|
| 466 | 466 |
iniset $TEMPEST_CONFIG scenario img_dir $SCENARIO_IMAGE_DIR |
| 467 |
- iniset $TEMPEST_CONFIG scenario img_file $DEFAULT_IMAGE_NAME |
|
| 467 |
+ iniset $TEMPEST_CONFIG scenario ami_img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-blank.img"
|
|
| 468 |
+ iniset $TEMPEST_CONFIG scenario ari_img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-initrd"
|
|
| 469 |
+ iniset $TEMPEST_CONFIG scenario aki_img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-vmlinuz"
|
|
| 470 |
+ iniset $TEMPEST_CONFIG scenario img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img"
|
|
| 468 | 471 |
|
| 469 | 472 |
# Large Ops Number |
| 470 | 473 |
iniset $TEMPEST_CONFIG scenario large_ops_number ${TEMPEST_LARGE_OPS_NUMBER:-0}
|
| ... | ... |
@@ -575,9 +575,9 @@ if [[ "$DOWNLOAD_DEFAULT_IMAGES" == "True" ]]; then |
| 575 | 575 |
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc |
| 576 | 576 |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs}
|
| 577 | 577 |
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs.img.gz";;
|
| 578 |
- *) # otherwise, use the qcow image |
|
| 579 |
- DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img}
|
|
| 580 |
- IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img";;
|
|
| 578 |
+ *) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
|
| 579 |
+ DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
|
|
| 580 |
+ IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec.tar.gz";;
|
|
| 581 | 581 |
esac |
| 582 | 582 |
;; |
| 583 | 583 |
vsphere) |
| ... | ... |
@@ -596,9 +596,9 @@ if [[ "$DOWNLOAD_DEFAULT_IMAGES" == "True" ]]; then |
| 596 | 596 |
fi |
| 597 | 597 |
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz"
|
| 598 | 598 |
IMAGE_URLS+=",http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img";;
|
| 599 |
- *) # Default to Cirros qcow2 image file |
|
| 600 |
- DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img}
|
|
| 601 |
- IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img";;
|
|
| 599 |
+ *) # Default to Cirros with kernel, ramdisk and disk image |
|
| 600 |
+ DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
|
|
| 601 |
+ IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec.tar.gz";;
|
|
| 602 | 602 |
esac |
| 603 | 603 |
DOWNLOAD_DEFAULT_IMAGES=False |
| 604 | 604 |
fi |