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
diff --git a/stack.sh b/stack.sh
index 340d4a8..78874d5 100755
--- a/stack.sh
+++ b/stack.sh
@@ -1000,6 +1000,7 @@
cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
iniset $GLANCE_API_CONF DEFAULT debug True
inicomment $GLANCE_API_CONF DEFAULT log_file
+ iniset $GLANCE_API_CONF DEFAULT sql_connection $BASE_SQL_CONN/glance?charset=utf8
iniset $GLANCE_API_CONF DEFAULT use_syslog $SYSLOG
iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/
iniset $GLANCE_API_CONF paste_deploy flavor keystone