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
This commit is contained in:
Brian Waldon 2012-05-25 08:31:59 -07:00
parent 4ffbe0bd60
commit 7f9833fb9d

View File

@ -1000,6 +1000,7 @@ if is_service_enabled g-reg; then
cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
iniset $GLANCE_API_CONF DEFAULT debug True iniset $GLANCE_API_CONF DEFAULT debug True
inicomment $GLANCE_API_CONF DEFAULT log_file 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 use_syslog $SYSLOG
iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/ iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/
iniset $GLANCE_API_CONF paste_deploy flavor keystone iniset $GLANCE_API_CONF paste_deploy flavor keystone