vstart.sh: Create an admin user for each CephFS

Issue a ceph fs authorize command for a new user corresponding to each
CephFS created.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
This commit is contained in:
Douglas Fuller 2017-11-08 15:49:09 -05:00
parent 474982aace
commit d8c05680a5

View File

@ -768,6 +768,7 @@ EOF
ceph_adm osd pool create "cephfs_data_${name}" 8
ceph_adm osd pool create "cephfs_metadata_${name}" 8
ceph_adm fs new "cephfs_${name}" "cephfs_metadata_${name}" "cephfs_data_${name}"
ceph_adm fs authorize "cephfs_${name}" "client.fs_${name}" / rwp
fs=$(($fs + 1))
[ $fs -eq $CEPH_NUM_FS ] && break
done