Skip to content

Commit 94562b4

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Make centralized_db driver as default cache driver"
2 parents 57c6854 + d251d12 commit 94562b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/glance

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ GLANCE_MULTIPLE_FILE_STORES=${GLANCE_MULTIPLE_FILE_STORES:-fast}
7575
GLANCE_DEFAULT_BACKEND=${GLANCE_DEFAULT_BACKEND:-fast}
7676

7777
GLANCE_CACHE_DIR=${GLANCE_CACHE_DIR:=$DATA_DIR/glance/cache}
78-
GLANCE_CACHE_DRIVER=${GLANCE_CACHE_DRIVER:-sqlite}
78+
GLANCE_CACHE_DRIVER=${GLANCE_CACHE_DRIVER:-centralized_db}
7979

8080
# Full Glance functionality requires running in standalone mode. If we are
8181
# not in uwsgi mode, then we are standalone, otherwise allow separate control.
@@ -432,6 +432,7 @@ function configure_glance {
432432
iniset $GLANCE_API_CONF DEFAULT bind_host $GLANCE_SERVICE_LISTEN_ADDRESS
433433
iniset $GLANCE_API_CONF DEFAULT bind_port $GLANCE_SERVICE_PORT_INT
434434
iniset $GLANCE_API_CONF DEFAULT workers "$API_WORKERS"
435+
iniset $GLANCE_API_CONF DEFAULT worker_self_reference_url $GLANCE_URL
435436
fi
436437

437438
if [[ "$GLANCE_ENFORCE_SCOPE" == True || "$ENFORCE_SCOPE" == True ]] ; then

0 commit comments

Comments
 (0)