]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: Create an admin user for each CephFS
authorDouglas Fuller <dfuller@redhat.com>
Wed, 8 Nov 2017 20:49:09 +0000 (15:49 -0500)
committerDouglas Fuller <dfuller@redhat.com>
Mon, 13 Nov 2017 18:18:35 +0000 (13:18 -0500)
Issue a ceph fs authorize command for a new user corresponding to each
CephFS created.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
src/vstart.sh

index 19c9e74437e635664f20c960648b36c50e5c6e07..4982f7b643e7b24b712a5cc29490f959aec6def2 100755 (executable)
@@ -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