-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove subvolumegroup creation from cephcsi #4185
Comments
/assign |
@Madhu-1 so with this change rook should always create the |
It should be created by Rook but I assume if you add it to filesystem.yaml file(s) for the user will get it created automatically. |
In the common cases this sounds good:
What is the behavior if the csi subvolumegroup is not created for some reason? Will provisioning the cephfs volume just fail? I wonder if Rook should create it by default when the filesystem is created, in case the CR is missed. |
@travisn if the subvolumegroup is missing the PVC creation will fail and PVC will stay in Pending state. sounds good to create the subvolumegroup by default when a filesystem is created. and if any customization is required a user can create the CR and override it as well. WDYT? |
Agreed sounds good to me to create it by default if the CR is missing. |
I don't think it's a good idea for us to create subvolumegroups at cephcsi. It should be the responsibility of the ceph admin to handle this task. Instead, cephcsi should only create subvolumes that correspond to the PVC/PV.
Additionally, we should avoid including pin details in the storageclass or clusterID configmap since a single subvolumegroup might be used by multiple storageclasses/clusterIDs. Pinning details are subject to change and should be considered a dynamic configuration.
Lastly, it's best if the ceph admin manages the creation and management of the filesystem and subvolumegroup.
Originally posted by @Madhu-1 in #2637 (comment)
The text was updated successfully, but these errors were encountered: