Browse code

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

Brian Waldon authored on 2012/05/26 00:31:59
Showing 1 changed files
... ...
@@ -1000,6 +1000,7 @@ if is_service_enabled g-reg; then
1000 1000
     cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
1001 1001
     iniset $GLANCE_API_CONF DEFAULT debug True
1002 1002
     inicomment $GLANCE_API_CONF DEFAULT log_file
1003
+    iniset $GLANCE_API_CONF DEFAULT sql_connection $BASE_SQL_CONN/glance?charset=utf8
1003 1004
     iniset $GLANCE_API_CONF DEFAULT use_syslog $SYSLOG
1004 1005
     iniset $GLANCE_API_CONF DEFAULT filesystem_store_datadir $GLANCE_IMAGE_DIR/
1005 1006
     iniset $GLANCE_API_CONF paste_deploy flavor keystone