use --silent-upload for glance - bug 945454
Change-Id: Ib96b38223e21644e3bfbbb3836eb24cbd5d33b49
This commit is contained in:
parent
489bd2a62b
commit
7052f72990
8
stack.sh
8
stack.sh
@ -1573,9 +1573,9 @@ if is_service_enabled g-reg; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
tar -zxf $FILES/tty.tgz -C $FILES/images
|
tar -zxf $FILES/tty.tgz -C $FILES/images
|
||||||
RVAL=`glance add -A $TOKEN name="tty-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/aki-tty/image`
|
RVAL=`glance add --silent-upload -A $TOKEN name="tty-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/aki-tty/image`
|
||||||
KERNEL_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
KERNEL_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
||||||
RVAL=`glance add -A $TOKEN name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < $FILES/images/ari-tty/image`
|
RVAL=`glance add --silent-upload -A $TOKEN name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < $FILES/images/ari-tty/image`
|
||||||
RAMDISK_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
RAMDISK_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
||||||
glance add -A $TOKEN name="tty" is_public=true container_format=ami disk_format=ami kernel_id=$KERNEL_ID ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
|
glance add -A $TOKEN name="tty" is_public=true container_format=ami disk_format=ami kernel_id=$KERNEL_ID ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
|
||||||
fi
|
fi
|
||||||
@ -1624,11 +1624,11 @@ if is_service_enabled g-reg; then
|
|||||||
# kernel for use when uploading the root filesystem.
|
# kernel for use when uploading the root filesystem.
|
||||||
KERNEL_ID=""; RAMDISK_ID="";
|
KERNEL_ID=""; RAMDISK_ID="";
|
||||||
if [ -n "$KERNEL" ]; then
|
if [ -n "$KERNEL" ]; then
|
||||||
RVAL=`glance add -A $TOKEN name="$IMAGE_NAME-kernel" is_public=true container_format=aki disk_format=aki < "$KERNEL"`
|
RVAL=`glance add --silent-upload -A $TOKEN name="$IMAGE_NAME-kernel" is_public=true container_format=aki disk_format=aki < "$KERNEL"`
|
||||||
KERNEL_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
KERNEL_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
||||||
fi
|
fi
|
||||||
if [ -n "$RAMDISK" ]; then
|
if [ -n "$RAMDISK" ]; then
|
||||||
RVAL=`glance add -A $TOKEN name="$IMAGE_NAME-ramdisk" is_public=true container_format=ari disk_format=ari < "$RAMDISK"`
|
RVAL=`glance add --silent-upload -A $TOKEN name="$IMAGE_NAME-ramdisk" is_public=true container_format=ari disk_format=ari < "$RAMDISK"`
|
||||||
RAMDISK_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
RAMDISK_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
|
||||||
fi
|
fi
|
||||||
glance add -A $TOKEN name="${IMAGE_NAME%.img}" is_public=true container_format=ami disk_format=ami ${KERNEL_ID:+kernel_id=$KERNEL_ID} ${RAMDISK_ID:+ramdisk_id=$RAMDISK_ID} < <(zcat --force "${IMAGE}")
|
glance add -A $TOKEN name="${IMAGE_NAME%.img}" is_public=true container_format=ami disk_format=ami ${KERNEL_ID:+kernel_id=$KERNEL_ID} ${RAMDISK_ID:+ramdisk_id=$RAMDISK_ID} < <(zcat --force "${IMAGE}")
|
||||||
|
Loading…
Reference in New Issue
Block a user