Skip to content

Commit d251d12

Browse files
committed
Make centralized_db driver as default cache driver
Making newly introduced `centralized_db` driver as default cache driver for glance so that it can be tested in available CI jobs. New cache driver `centralized_db` needs `worker_self_reference_url` in glance-api.conf file otherwise glance api service will fail to start. Related blueprint centralized-cache-db Depends-On: https://review.opendev.org/c/openstack/glance/+/899871 Change-Id: I75267988b1c80ac9daa5843ce8462bbac49ffe27
1 parent 5c1736b commit d251d12

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)