Fixed --is-public=True -> --visibility public when adding a new image.

This commit is contained in:
Thomas Goirand 2015-09-25 21:39:27 +02:00
parent cd123787d1
commit 45897b65af
2 changed files with 3 additions and 2 deletions

1
debian/changelog vendored
View File

@ -4,6 +4,7 @@ openstack-meta-packages (0.14) experimental; urgency=medium
* Fixed ssh user for cirros in openstack-deploy-tempest.
* Switched to using liberty instead of Kilo.
* Also setting OS_PROJECT_NAME in openrc.sh.
* Fixed --is-public=True -> --visibility public when adding a new image.
-- Thomas Goirand <zigo@debian.org> Sat, 16 May 2015 07:26:45 +0200

View File

@ -94,12 +94,12 @@ build_and_upload_image () {
build-openstack-debian-image -r jessie -p ${IMAGE_PASS} ${DEBIAN_REPO_PARAM}
IMAGE_PATH=`ls *.qcow2`
echo "===> Uploading image to Glance"
IMAGE_REF=`pkgos_get_id glance image-create --name foo --disk-format=qcow2 --container-format=bare --is-public=True --file=${IMAGE_PATH}`
IMAGE_REF=`pkgos_get_id glance image-create --name foo --disk-format=qcow2 --container-format=bare --visibility public --file=${IMAGE_PATH}`
else
echo "===> Download the Cirros image"
IMAGE_PATH=/opt/stack/new/devstack/files/images/cirros-${CIRROS_VERSION}-x86_64-disk.img
wget http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img -O ${IMAGE_PATH}
IMAGE_REF=`pkgos_get_id glance image-create --name foo --disk-format=qcow2 --container-format=bare --is-public=True --file=${IMAGE_PATH}`
IMAGE_REF=`pkgos_get_id glance image-create --name foo --disk-format=qcow2 --container-format=bare --visibility public --file=${IMAGE_PATH}`
fi
}