Skip to content

Commit ee76d26

Browse files
committed
Store glance images in Swift if enabled.
- Fixes bug 968950. - This should be applied after review 5856 for glance. Change-Id: I779fd75ce7394bdfc2ffc1354b4ed35a6109321f
1 parent 33a19d4 commit ee76d26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stack.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,15 @@ if is_service_enabled g-reg; then
989989
iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/
990990
iniset $GLANCE_API_CONF paste_deploy flavor keystone
991991

992+
# Store the images in swift if enabled.
993+
if is_service_enabled swift; then
994+
iniset $GLANCE_API_CONF DEFAULT default_store swift
995+
iniset $GLANCE_API_CONF DEFAULT swift_store_auth_address $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0/
996+
iniset $GLANCE_API_CONF DEFAULT swift_store_user $SERVICE_TENANT_NAME:glance
997+
iniset $GLANCE_API_CONF DEFAULT swift_store_key $SERVICE_PASSWORD
998+
iniset $GLANCE_API_CONF DEFAULT swift_store_create_container_on_put True
999+
fi
1000+
9921001
GLANCE_API_PASTE_INI=$GLANCE_CONF_DIR/glance-api-paste.ini
9931002
cp $GLANCE_DIR/etc/glance-api-paste.ini $GLANCE_API_PASTE_INI
9941003
iniset $GLANCE_API_PASTE_INI filter:authtoken auth_host $KEYSTONE_AUTH_HOST

0 commit comments

Comments
 (0)