renamed deprecated glanceclient parameter
According to the sources the parameter --public in python-glanceclient should be removed after only using the new parameter --is-public in Devstack. Change-Id: I25fbb23f4823b3766db647dd50a5b538aad3e55a
This commit is contained in:
parent
e7559a479e
commit
a7a219ab76
10
functions
10
functions
@ -1288,9 +1288,9 @@ function upload_image() {
|
||||
|
||||
if [ "$CONTAINER_FORMAT" = "bare" ]; then
|
||||
if [ "$UNPACK" = "zcat" ]; then
|
||||
glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME" --public --container-format=$CONTAINER_FORMAT --disk-format $DISK_FORMAT < <(zcat --force "${IMAGE}")
|
||||
glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME" --is-public True --container-format=$CONTAINER_FORMAT --disk-format $DISK_FORMAT < <(zcat --force "${IMAGE}")
|
||||
else
|
||||
glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME" --public --container-format=$CONTAINER_FORMAT --disk-format $DISK_FORMAT < "${IMAGE}"
|
||||
glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME" --is-public True --container-format=$CONTAINER_FORMAT --disk-format $DISK_FORMAT < "${IMAGE}"
|
||||
fi
|
||||
else
|
||||
# Use glance client to add the kernel the root filesystem.
|
||||
@ -1298,12 +1298,12 @@ function upload_image() {
|
||||
# kernel for use when uploading the root filesystem.
|
||||
KERNEL_ID=""; RAMDISK_ID="";
|
||||
if [ -n "$KERNEL" ]; then
|
||||
KERNEL_ID=$(glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME-kernel" --public --container-format aki --disk-format aki < "$KERNEL" | grep ' id ' | get_field 2)
|
||||
KERNEL_ID=$(glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME-kernel" --is-public True --container-format aki --disk-format aki < "$KERNEL" | grep ' id ' | get_field 2)
|
||||
fi
|
||||
if [ -n "$RAMDISK" ]; then
|
||||
RAMDISK_ID=$(glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME-ramdisk" --public --container-format ari --disk-format ari < "$RAMDISK" | grep ' id ' | get_field 2)
|
||||
RAMDISK_ID=$(glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME-ramdisk" --is-public True --container-format ari --disk-format ari < "$RAMDISK" | grep ' id ' | get_field 2)
|
||||
fi
|
||||
glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "${IMAGE_NAME%.img}" --public --container-format ami --disk-format ami ${KERNEL_ID:+--property kernel_id=$KERNEL_ID} ${RAMDISK_ID:+--property ramdisk_id=$RAMDISK_ID} < "${IMAGE}"
|
||||
glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "${IMAGE_NAME%.img}" --is-public True --container-format ami --disk-format ami ${KERNEL_ID:+--property kernel_id=$KERNEL_ID} ${RAMDISK_ID:+--property ramdisk_id=$RAMDISK_ID} < "${IMAGE}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -239,14 +239,14 @@ function upload_baremetal_deploy() {
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name $BM_DEPLOY_KERNEL \
|
||||
--public --disk-format=aki \
|
||||
--is-public True --disk-format=aki \
|
||||
< $TOP_DIR/files/$BM_DEPLOY_KERNEL | grep ' id ' | get_field 2)
|
||||
BM_DEPLOY_RAMDISK_ID=$(glance \
|
||||
--os-auth-token $token \
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name $BM_DEPLOY_RAMDISK \
|
||||
--public --disk-format=ari \
|
||||
--is-public True --disk-format=ari \
|
||||
< $TOP_DIR/files/$BM_DEPLOY_RAMDISK | grep ' id ' | get_field 2)
|
||||
}
|
||||
|
||||
@ -294,14 +294,14 @@ function extract_and_upload_k_and_r_from_image() {
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name $image_name-kernel \
|
||||
--public --disk-format=aki \
|
||||
--is-public True --disk-format=aki \
|
||||
< $TOP_DIR/files/$OUT_KERNEL | grep ' id ' | get_field 2)
|
||||
RAMDISK_ID=$(glance \
|
||||
--os-auth-token $token \
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name $image_name-initrd \
|
||||
--public --disk-format=ari \
|
||||
--is-public True --disk-format=ari \
|
||||
< $TOP_DIR/files/$OUT_RAMDISK | grep ' id ' | get_field 2)
|
||||
}
|
||||
|
||||
@ -371,14 +371,14 @@ function upload_baremetal_image() {
|
||||
--os-auth-token $token \
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name "$IMAGE_NAME-kernel" --public \
|
||||
--name "$IMAGE_NAME-kernel" --is-public True \
|
||||
--container-format aki \
|
||||
--disk-format aki < "$KERNEL" | grep ' id ' | get_field 2)
|
||||
RAMDISK_ID=$(glance \
|
||||
--os-auth-token $token \
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name "$IMAGE_NAME-ramdisk" --public \
|
||||
--name "$IMAGE_NAME-ramdisk" --is-public True \
|
||||
--container-format ari \
|
||||
--disk-format ari < "$RAMDISK" | grep ' id ' | get_field 2)
|
||||
else
|
||||
@ -390,7 +390,7 @@ function upload_baremetal_image() {
|
||||
--os-auth-token $token \
|
||||
--os-image-url http://$GLANCE_HOSTPORT \
|
||||
image-create \
|
||||
--name "${IMAGE_NAME%.img}" --public \
|
||||
--name "${IMAGE_NAME%.img}" --is-public True \
|
||||
--container-format $CONTAINER_FORMAT \
|
||||
--disk-format $DISK_FORMAT \
|
||||
${KERNEL_ID:+--property kernel_id=$KERNEL_ID} \
|
||||
|
Loading…
Reference in New Issue
Block a user