Skip to content
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

Closed
Madhu-1 opened this issue Oct 11, 2023 · 6 comments · Fixed by #4195
Closed

Remove subvolumegroup creation from cephcsi #4185

Madhu-1 opened this issue Oct 11, 2023 · 6 comments · Fixed by #4195
Assignees
Labels
component/cephfs Issues related to CephFS

Comments

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Oct 11, 2023

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)

@iPraveenParihar
Copy link
Contributor

/assign

@nixpanic nixpanic added the component/cephfs Issues related to CephFS label Oct 12, 2023
@parth-gr
Copy link
Contributor

@Madhu-1 so with this change rook should always create the csi subvolumegroup while creating filesystem?

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Oct 12, 2023

@Madhu-1 so with this change rook should always create the csi subvolumegroup while creating filesystem?

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.

@travisn
Copy link
Member

travisn commented Oct 12, 2023

In the common cases this sounds good:

  1. Upgraded clusters would already have the csi subvolumegroup created, so no issues during upgrade
  2. New clusters would create the subvolumegroup with the filesystem.yaml

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.

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Oct 16, 2023

In the common cases this sounds good:

  1. Upgraded clusters would already have the csi subvolumegroup created, so no issues during upgrade
  2. New clusters would create the subvolumegroup with the filesystem.yaml

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?

@travisn
Copy link
Member

travisn commented Oct 16, 2023

In the common cases this sounds good:

  1. Upgraded clusters would already have the csi subvolumegroup created, so no issues during upgrade
  2. New clusters would create the subvolumegroup with the filesystem.yaml

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.

@mergify mergify bot closed this as completed in #4195 Nov 10, 2023
hswong3i added a commit to alvistack/ansible-role-kube_csi_cephfs that referenced this issue Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cephfs Issues related to CephFS
Projects
None yet
5 participants