Skip to content

Commit 14b3b96

Browse files
committed
Revert "Switch devstack to use qcow cirros img"
This was not supposed to be merged yet, it breaks grenade. There needs to be a fix applied to master and then included in this backport. This reverts commit f61ca5f. Change-Id: I6321039117dcff80bb87e43f0e49082071018936
1 parent f61ca5f commit 14b3b96

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

lib/tempest

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,14 @@ function configure_tempest {
416416
iniset $TEMPEST_CONFIG scenario img_disk_format vhd
417417
iniset $TEMPEST_CONFIG scenario img_container_format ovf
418418
else
419-
SCENARIO_IMAGE_DIR=${SCENARIO_IMAGE_DIR:-$FILES}
420-
SCENARIO_IMAGE_FILE=$DEFAULT_IMAGE_NAME
419+
SCENARIO_IMAGE_DIR=${SCENARIO_IMAGE_DIR:-$FILES/images/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
420+
SCENARIO_IMAGE_FILE="cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img"
421421
fi
422422
iniset $TEMPEST_CONFIG scenario img_dir $SCENARIO_IMAGE_DIR
423423
iniset $TEMPEST_CONFIG scenario img_file $SCENARIO_IMAGE_FILE
424+
iniset $TEMPEST_CONFIG scenario ami_img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-blank.img"
425+
iniset $TEMPEST_CONFIG scenario ari_img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-initrd"
426+
iniset $TEMPEST_CONFIG scenario aki_img_file "cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-vmlinuz"
424427

425428
# If using provider networking, use the physical network for validation rather than private
426429
TEMPEST_SSH_NETWORK_NAME=$PRIVATE_NETWORK_NAME

stackrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ if [[ "$DOWNLOAD_DEFAULT_IMAGES" == "True" ]]; then
634634
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
635635
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs}
636636
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs.img.gz";;
637-
*) # otherwise, use the qcow image
638-
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img}
639-
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img";;
637+
*) # otherwise, use the uec style image (with kernel, ramdisk, disk)
638+
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
639+
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec.tar.gz";;
640640
esac
641641
;;
642642
vsphere)
@@ -650,9 +650,9 @@ if [[ "$DOWNLOAD_DEFAULT_IMAGES" == "True" ]]; then
650650
# NOTE(lucasagomes): The logic setting the default image
651651
# now lives in the Ironic tree
652652
;;
653-
*) # Default to Cirros qcow2 image file
654-
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img}
655-
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img";;
653+
*) # Default to Cirros with kernel, ramdisk and disk image
654+
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
655+
IMAGE_URLS+="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec.tar.gz";;
656656
esac
657657
DOWNLOAD_DEFAULT_IMAGES=False
658658
fi

0 commit comments

Comments
 (0)