-
Notifications
You must be signed in to change notification settings - Fork 102
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
No clear default value for thin provisioning of filesystems #560
Comments
Hi there, unfortunately no there is still a misleading comment that let users think that default is "thick" provisioning
As far as I can tell, the PR, although being very interesting, is not related to this issue. |
I am not familiar with the code of zfs-localpv but quickly looking at it I did not see any thin provisioning default value management. Could you please confirm ? |
When you say
|
I am referring to the fact that not setting anything on the storageClass will result in |
The documentation should precise the default behavior, but this is a bonus. |
Definitely, we could do better here @abuisine would you mind making the change? Otherwise this can be taken up by someone. |
Ok will do. |
Okay, so I looked into the code again. Seems like there are two branches of call happening, based on the filesystem.
But if the filesystem is anything else, we create a zvol with with property defined in the below snippet.
In the second case there is no handling for thinprovision: "no", it seems. Seems wrong, wdyt? |
|
I ran some quick tests, it seems that:
I will adjust my doc PR to clarify. |
Can you please confirm if you tested ZFS or LocalPV ZFS to establish the above behavior? |
Sorry, I used the ZFS command line |
@abuisine @avishnu I ran some tests to check the behaviour for each value of the param
3.
|
Ok same results than what I infered with my CLI tests. |
What steps did you take and what happened:
I created a simple storageClass as follows :
and then created both a PVC and a Pod in order to trigger the CSI provisioner which then creates a zfs FS
What did you expect to happen:
I would have expected a thick provisioning aka reservation or refreservation property on the created zfs FS but I got none.
As there is no default value in the documentation : https://github.com/openebs/zfs-localpv/blob/develop/docs/storageclasses.md#thinprovision-optional-parameter,
I had a look at the code and there is, it seems, a
no
default value :zfs-localpv/pkg/apis/openebs.io/zfs/v1alpha1/zfsvolume.go
Line 151 in 1c4a810
The output of the following commands will help us better understand what's going on:
Anything else you would like to add:
I would suggest :
Also it is worth to be noted that setting
thinprovision: "no"
works as expected, my problem is limited to the default behavior.Environment:
kubectl version
): v1.27.12/etc/os-release
): Flatcar 3815.2.0The text was updated successfully, but these errors were encountered: