cephfs: set pool layout of the FS subvolumes

... instead of that of the `csi` subvolume group. The pool layout
specified via storage class's `pool` setting is a subvolume property
and not a subvolume group property. The `csi` subvolume group
may have subvolumes of different storage classes with different
pool layouts.

Fixes: #499
Signed-off-by: Ramana Raja <rraja@redhat.com>
This commit is contained in:
Ramana Raja 2019-07-25 18:04:51 +05:30 committed by mergify[bot]
parent c7d990a96b
commit 5932fff93e

View File

@ -85,8 +85,6 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
csiSubvolumeGroup, csiSubvolumeGroup,
"--mode", "--mode",
"777", "777",
"--pool_layout",
volOptions.Pool,
"-m", volOptions.Monitors, "-m", volOptions.Monitors,
"-c", util.CephConfigPath, "-c", util.CephConfigPath,
"-n", cephEntityClientPrefix+cr.ID, "-n", cephEntityClientPrefix+cr.ID,
@ -108,6 +106,7 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
strconv.FormatInt(bytesQuota, 10), strconv.FormatInt(bytesQuota, 10),
"--group_name", "--group_name",
csiSubvolumeGroup, csiSubvolumeGroup,
"--pool_layout", volOptions.Pool,
"-m", volOptions.Monitors, "-m", volOptions.Monitors,
"-c", util.CephConfigPath, "-c", util.CephConfigPath,
"-n", cephEntityClientPrefix+cr.ID, "-n", cephEntityClientPrefix+cr.ID,