Skip to content

Commit 7f9833f

Browse files
committed
Set sql_connection in glance-api.conf
The v2 API uses the database directly from the glance-api server. We need to provide the same connection credentials as we set for the glance-registry server. Change-Id: I5093a9f7978f627e1dee4047b1f45383f9e4e7da
1 parent 4ffbe0b commit 7f9833f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ if is_service_enabled g-reg; then
10001000
cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
10011001
iniset $GLANCE_API_CONF DEFAULT debug True
10021002
inicomment $GLANCE_API_CONF DEFAULT log_file
1003+
iniset $GLANCE_API_CONF DEFAULT sql_connection $BASE_SQL_CONN/glance?charset=utf8
10031004
iniset $GLANCE_API_CONF DEFAULT use_syslog $SYSLOG
10041005
iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/
10051006
iniset $GLANCE_API_CONF paste_deploy flavor keystone

0 commit comments

Comments
 (0)