Don't hardcode glance protocol when finding trove guest image
This allows configuration of trove when devstack is configured for SSL or tls-proxy. Change-Id: I680effda94926951f9068e2df1e354c708aa4495
This commit is contained in:
parent
219a58e57b
commit
213f13a283
@ -207,7 +207,7 @@ function init_trove {
|
|||||||
# The image is uploaded by stack.sh -- see $IMAGE_URLS handling
|
# The image is uploaded by stack.sh -- see $IMAGE_URLS handling
|
||||||
GUEST_IMAGE_NAME=$(basename "$TROVE_GUEST_IMAGE_URL")
|
GUEST_IMAGE_NAME=$(basename "$TROVE_GUEST_IMAGE_URL")
|
||||||
GUEST_IMAGE_NAME=${GUEST_IMAGE_NAME%.*}
|
GUEST_IMAGE_NAME=${GUEST_IMAGE_NAME%.*}
|
||||||
TROVE_GUEST_IMAGE_ID=$(openstack --os-token $TOKEN --os-url http://$GLANCE_HOSTPORT image list | grep "${GUEST_IMAGE_NAME}" | get_field 1)
|
TROVE_GUEST_IMAGE_ID=$(openstack --os-token $TOKEN --os-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT image list | grep "${GUEST_IMAGE_NAME}" | get_field 1)
|
||||||
if [ -z "$TROVE_GUEST_IMAGE_ID" ]; then
|
if [ -z "$TROVE_GUEST_IMAGE_ID" ]; then
|
||||||
# If no glance id is found, skip remaining setup
|
# If no glance id is found, skip remaining setup
|
||||||
echo "Datastore ${TROVE_DATASTORE_TYPE} will not be created: guest image ${GUEST_IMAGE_NAME} not found."
|
echo "Datastore ${TROVE_DATASTORE_TYPE} will not be created: guest image ${GUEST_IMAGE_NAME} not found."
|
||||||
|
Loading…
Reference in New Issue
Block a user