From acc1b8b0df1572378998b01e140a9117a8e2dea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 11 Feb 2014 12:02:02 +0100 Subject: [PATCH] Fix wrong virsh secret key We set the cinder key inside nova because nova attaches the device. Cinder volumes are attached so we must use the cinder key which has permissions on the cinder pool. If we use the glance key this will never work since the glance user doesn't have any permissions on the cinder pool. Closes bug: #209 --- manifests/storage/rbd/pools.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/storage/rbd/pools.pp b/manifests/storage/rbd/pools.pp index 9bea2bdf..11d8d739 100644 --- a/manifests/storage/rbd/pools.pp +++ b/manifests/storage/rbd/pools.pp @@ -77,7 +77,7 @@ class cloud::storage::rbd::pools( } @@exec { 'set_secret_value_virsh': - command => "virsh secret-set-value --secret ${ceph_fsid} --base64 ${::ceph_keyring_glance}", + command => "virsh secret-set-value --secret ${ceph_fsid} --base64 ${::ceph_keyring_cinder}", tag => 'ceph_compute_set_secret', refreshonly => true, }