From 089f044cbee4be1d2e1c3ad943c20eec33df736f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 24 Jul 2015 17:07:07 +0200 Subject: [PATCH] update cinder's key permission to allow nova snapshots MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Preparing the field for this patch: https://review.openstack.org/#/c/205282/2 The client.cinder key needs to have write permission to the glance pool in order to complete the snapshot process. Change-Id: I90c6aa056b99944aa558783f3f81d06f918f3e26 Signed-off-by: Sébastien Han --- lib/ceph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ceph b/lib/ceph index 6cf481e530..aeb7191512 100644 --- a/lib/ceph +++ b/lib/ceph @@ -295,7 +295,7 @@ function configure_ceph_nova { iniset $NOVA_CONF libvirt images_rbd_ceph_conf ${CEPH_CONF_FILE} if ! is_service_enabled cinder; then - sudo ceph -c ${CEPH_CONF_FILE} auth get-or-create client.${CINDER_CEPH_USER} mon "allow r" osd "allow class-read object_prefix rbd_children, allow rwx pool=${CINDER_CEPH_POOL}, allow rwx pool=${NOVA_CEPH_POOL},allow rx pool=${GLANCE_CEPH_POOL}" | sudo tee ${CEPH_CONF_DIR}/ceph.client.${CINDER_CEPH_USER}.keyring > /dev/null + sudo ceph -c ${CEPH_CONF_FILE} auth get-or-create client.${CINDER_CEPH_USER} mon "allow r" osd "allow class-read object_prefix rbd_children, allow rwx pool=${CINDER_CEPH_POOL}, allow rwx pool=${NOVA_CEPH_POOL},allow rwx pool=${GLANCE_CEPH_POOL}" | sudo tee ${CEPH_CONF_DIR}/ceph.client.${CINDER_CEPH_USER}.keyring > /dev/null sudo chown ${STACK_USER}:$(id -g -n $whoami) ${CEPH_CONF_DIR}/ceph.client.${CINDER_CEPH_USER}.keyring fi }