Skip to content

Commit 9a70610

Browse files
committed
Set Glance default_store to rbd in [glance_store]
Glance is moving from [DEFAULT] to [glance_store] for this option. Since lib/glance sets both, let's also set it in both places for now. Failing to do this causes g-api to fail to start with error: "Store for scheme swift not found" Change-Id: I9e33ababf7c51f5c750f90b8b366b9892bb4c8cd
1 parent 5278b8a commit 9a70610

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/ceph

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,12 @@ function configure_ceph_glance {
197197
fi
198198
sudo ceph -c ${CEPH_CONF_FILE} auth get-or-create client.${GLANCE_CEPH_USER} mon "allow r" osd "allow class-read object_prefix rbd_children, allow rwx pool=${GLANCE_CEPH_POOL}" | sudo tee ${CEPH_CONF_DIR}/ceph.client.${GLANCE_CEPH_USER}.keyring
199199
sudo chown ${STACK_USER}:$(id -g -n $whoami) ${CEPH_CONF_DIR}/ceph.client.${GLANCE_CEPH_USER}.keyring
200+
201+
# NOTE(eharney): When Glance has fully migrated to Glance store,
202+
# default_store can be removed from [DEFAULT]. (See lib/glance.)
200203
iniset $GLANCE_API_CONF DEFAULT default_store rbd
201204
iniset $GLANCE_API_CONF DEFAULT show_image_direct_url True
205+
iniset $GLANCE_API_CONF glance_store default_store rbd
202206
iniset $GLANCE_API_CONF glance_store stores "file, http, rbd"
203207
iniset $GLANCE_API_CONF glance_store rbd_store_ceph_conf $CEPH_CONF_FILE
204208
iniset $GLANCE_API_CONF glance_store rbd_store_user $GLANCE_CEPH_USER

0 commit comments

Comments
 (0)