Use "--is-public True" during image-create's

A new glanceclient has been released that no longer supports the
--public option.

Change-Id: I8075271f894d16c9d090106b0d41ab9d3069400a
Closes-Bug: #1366808
This commit is contained in:
Derek Higgins 2014-09-08 14:44:40 +01:00
parent 974d3cd1d4
commit 988c55d0eb
3 changed files with 6 additions and 6 deletions

View File

@ -480,7 +480,7 @@ if [ "stack-create" = "$HEAT_OP" ]; then #nodocs
## #. Register the end user image with glance.
## ::
glance image-create --name user --public --disk-format qcow2 \
glance image-create --name user --is-public True --disk-format qcow2 \
--container-format bare --file $TRIPLEO_ROOT/$USER_IMG_NAME
fi #nodocs

View File

@ -94,19 +94,19 @@ function load_image() {
fi
kernel_id=$(glance image-create --name "${GLANCE_IMAGE_NAME}-vmlinuz" \
--public \
--is-public True \
--disk-format aki \
--file "$KERNEL" \
| grep ' id ' | awk '{print $4}')
ramdisk_id=$(glance image-create --name "${GLANCE_IMAGE_NAME}-initrd" \
--public \
--is-public True \
--disk-format ari \
--file "$RAMDISK" \
| grep ' id ' | awk '{print $4}')
# >&3 sends to the original stdout as this is what we are after
glance image-create --name $GLANCE_IMAGE_NAME \
--public \
--is-public True \
--disk-format qcow2 \
--container-format bare \
--property kernel_id=$kernel_id \

View File

@ -77,9 +77,9 @@ fi
deploy_kernel=$TRIPLEO_ROOT/$deploy_base.kernel
deploy_ramdisk=$TRIPLEO_ROOT/$deploy_base.initramfs
deploy_kernel_id=$(glance image-create --name bm-deploy-kernel --public \
deploy_kernel_id=$(glance image-create --name bm-deploy-kernel --is-public True \
--disk-format aki < "$deploy_kernel" | awk ' / id / {print $4}')
deploy_ramdisk_id=$(glance image-create --name bm-deploy-ramdisk --public \
deploy_ramdisk_id=$(glance image-create --name bm-deploy-ramdisk --is-public True \
--disk-format ari < "$deploy_ramdisk" | awk ' / id / {print $4}')
function cleanup_flavor () {