From 7c9abcad0dfeb0a2d8537e897ca26c0396633709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 15 Sep 2014 16:17:42 +0200 Subject: [PATCH] Add RBD as a known store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding RBD as a known store in the glance-api.conf file allows us to use Ceph as a backend for Glance. Closes-Bug: 1369578 Change-Id: I02cbafa68ca3293cedc9fef7535e79930cc4ee5c Signed-off-by: Sébastien Han --- lib/ceph | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ceph b/lib/ceph index 84640420df..30ca903a8d 100644 --- a/lib/ceph +++ b/lib/ceph @@ -198,10 +198,11 @@ function configure_ceph_glance { 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 sudo chown ${STACK_USER}:$(id -g -n $whoami) ${CEPH_CONF_DIR}/ceph.client.${GLANCE_CEPH_USER}.keyring iniset $GLANCE_API_CONF DEFAULT default_store rbd - iniset $GLANCE_API_CONF DEFAULT rbd_store_ceph_conf $CEPH_CONF_FILE - iniset $GLANCE_API_CONF DEFAULT rbd_store_user $GLANCE_CEPH_USER - iniset $GLANCE_API_CONF DEFAULT rbd_store_pool $GLANCE_CEPH_POOL iniset $GLANCE_API_CONF DEFAULT show_image_direct_url True + iniset $GLANCE_API_CONF glance_store stores "file, http, rbd" + iniset $GLANCE_API_CONF glance_store rbd_store_ceph_conf $CEPH_CONF_FILE + iniset $GLANCE_API_CONF glance_store rbd_store_user $GLANCE_CEPH_USER + iniset $GLANCE_API_CONF glance_store rbd_store_pool $GLANCE_CEPH_POOL } # configure_ceph_nova() - Nova config needs to come after Nova is set up