From ee76d26f232beced4e12ff636fe3bdcce8b91c55 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 9 May 2012 17:19:09 +0100 Subject: [PATCH] Store glance images in Swift if enabled. - Fixes bug 968950. - This should be applied after review 5856 for glance. Change-Id: I779fd75ce7394bdfc2ffc1354b4ed35a6109321f --- stack.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stack.sh b/stack.sh index 66c8e93208..fa5b7eca1f 100755 --- a/stack.sh +++ b/stack.sh @@ -989,6 +989,15 @@ if is_service_enabled g-reg; then iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/ iniset $GLANCE_API_CONF paste_deploy flavor keystone + # Store the images in swift if enabled. + if is_service_enabled swift; then + iniset $GLANCE_API_CONF DEFAULT default_store swift + iniset $GLANCE_API_CONF DEFAULT swift_store_auth_address $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0/ + iniset $GLANCE_API_CONF DEFAULT swift_store_user $SERVICE_TENANT_NAME:glance + iniset $GLANCE_API_CONF DEFAULT swift_store_key $SERVICE_PASSWORD + iniset $GLANCE_API_CONF DEFAULT swift_store_create_container_on_put True + fi + GLANCE_API_PASTE_INI=$GLANCE_CONF_DIR/glance-api-paste.ini cp $GLANCE_DIR/etc/glance-api-paste.ini $GLANCE_API_PASTE_INI iniset $GLANCE_API_PASTE_INI filter:authtoken auth_host $KEYSTONE_AUTH_HOST