From 7f9833fb9db48875cffa7d4e81af5bffe20e9b52 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Fri, 25 May 2012 08:31:59 -0700 Subject: [PATCH] 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 --- stack.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/stack.sh b/stack.sh index 340d4a8beb..78874d5e71 100755 --- a/stack.sh +++ b/stack.sh @@ -1000,6 +1000,7 @@ if is_service_enabled g-reg; then 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