Fix CephX cinder user permissions
The CephX cinder user must be able to write on his own pool. Previous permissions were "rx". Valid permissions are "rwx". Close #157
This commit is contained in:
parent
7baf10b413
commit
f30323d5a1
@ -49,7 +49,7 @@ class cloud::storage::rbd::pools(
|
|||||||
|
|
||||||
exec { 'create_cinder_volumes_user_and_key':
|
exec { 'create_cinder_volumes_user_and_key':
|
||||||
# TODO: point PG num with a cluster variable
|
# TODO: point PG num with a cluster variable
|
||||||
command => "ceph auth get-or-create client.${cinder_user} mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=${glance_pool}, allow rx pool=${cinder_pool}'",
|
command => "ceph auth get-or-create client.${cinder_user} mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rx pool=${glance_pool}, allow rwx pool=${cinder_pool}'",
|
||||||
unless => "ceph auth list 2> /dev/null | egrep -sq '^client.${cinder_user}$'",
|
unless => "ceph auth list 2> /dev/null | egrep -sq '^client.${cinder_user}$'",
|
||||||
require => Exec['create_cinder_volumes_pool'];
|
require => Exec['create_cinder_volumes_pool'];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user