File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ function create_pool {
184184function build_caps {
185185 local CAPS=" "
186186 for pool in " ${CEPH_POOLS[@]} " ; do
187- caps=" allow rwx pool=" $pool
187+ caps=" profile rbd pool=" $pool
188188 CAPS+=$caps ,
189189 done
190190 echo " ${CAPS::- 1} "
@@ -198,11 +198,10 @@ function create_key {
198198 if [ " ${# CEPH_POOLS[@]} " -eq 0 ]; then
199199 osd_caps=" allow *"
200200 else
201- caps=$( build_caps)
202- osd_caps=" allow class-read object_prefix rbd_children, $caps "
201+ osd_caps=$( build_caps)
203202 fi
204203 # do not log the key if exists
205- oc rsh -n $NAMESPACE ceph ceph auth get-or-create " $client " mgr " allow rw " mon " allow r " osd " $osd_caps " > /dev/null
204+ oc rsh -n $NAMESPACE ceph ceph auth get-or-create " $client " mgr " allow * " mon " profile rbd " osd " $osd_caps " > /dev/null
206205}
207206
208207function create_secret {
You can’t perform that action at this time.
0 commit comments