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

ZFS Reservation is not updated when resizing a volume (thinprovisining disabled). #568

Closed
donch opened this issue Jul 22, 2024 · 4 comments · Fixed by #595
Closed

ZFS Reservation is not updated when resizing a volume (thinprovisining disabled). #568

donch opened this issue Jul 22, 2024 · 4 comments · Fixed by #595
Assignees
Labels
help wanted Need help from community contributors. Need community involvement Needs community involvement on some action item.
Milestone

Comments

@donch
Copy link

donch commented Jul 22, 2024

What steps did you take and what happened:

I've encountered an issue with volume expansion when using a StorageClass configured with thinprovision=no. While the initial volume creation correctly sets both the Quota and Reservation parameters for the ZFS volume, subsequent volume expansions only update the Quota, leaving the Reservation unchanged.

Here is an extended volume from 1Gi to 5Gi :

NAME                                              QUOTA  RESERV  REFQUOTA  REFRESERV   USED  AVAIL
zfspool                                            none    none      none       none  1.00G  29.5G
zfspool/pvc-b3b2e70d-a724-4a99-ad4a-bade4904e6da     5G      1G      none       none    25K  5.00G

What did you expect to happen:

Both ZFS Quota and Reservation should be updated during volume expansion to maintain consistency with the thinprovision=no setting.

Steps to reproduce:

  1. Create a StorageClass with thinprovision=no
  2. Create a PersistentVolumeClaim using this StorageClass
  3. Verify initial Quota and Reservation values on the ZFS volume
  4. Expand the PersistentVolumeClaim
  5. Check Quota and Reservation values - only Quota will have been updated

Anything else you would like to add:

Any assistance in addressing this issue would be greatly appreciated, as it's critical for maintaining the expected behavior of non-thin-provisioned volumes in our environment.

Environment:

  • LocalPV-ZFS version: chart openebs-4.1.0
  • Kubernetes version (use kubectl version): v1.27.10+k0s
  • Cloud provider or hardware configuration: Proxmox VM
  • OS (e.g. from /etc/os-release): Flatcar Container Linux by Kinvolk 3510.2.6
@Abhinandan-Purkait Abhinandan-Purkait added help wanted Need help from community contributors. Need community involvement Needs community involvement on some action item. labels Jul 24, 2024
@Abhinandan-Purkait
Copy link
Member

@donch Yeah, seems like it needs to be set from here, but it's not currently.

quotaProperty := "quota=" + vol.Spec.Capacity

Would be interested in taking this up?

@donch
Copy link
Author

donch commented Jul 24, 2024

hi @Abhinandan-Purkait , I'm not very comfortable coding in Golang 😅 , could this potentially be addressed from your side?

@Abhinandan-Purkait
Copy link
Member

@donch, sure, btw I am already occupied with the overhaul of the CI because there seems to be some gaps there. So it might take a while.

@Jonathan-Eid
Copy link

+1 this issue, very critical to get it working for my usecase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need help from community contributors. Need community involvement Needs community involvement on some action item.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants