-
Notifications
You must be signed in to change notification settings - Fork 107
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
volumesnapshot restoreSize is not set when returning from createSnapshot response #416
Comments
@chinglinwen snapshot size is optional in CSI spec. how size is being used in creating the clone for ZFS volume? do we need size there? all we need to do is this |
I think if restore size is zero, will cause kubevirt creating kubernetes pvc failed ( I think it's restrict by kube-apiserver validation for pvc object). I've fixed in my local repo, and after return the size, kubevirt works properly(creating pvc success). |
@chinglinwen sounds good. Would you like to raise a PR for that? |
sure. |
What steps did you take and what happened:
create volumesnapshot, cause later create PVC(which source is snapshot) failed ( because of zero storage.size )
What did you expect to happen:
restoresize should have been set
The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other Pastebin is fine.)
kubectl logs -f openebs-zfs-controller-0 -n kube-system -c openebs-zfs-plugin
kubectl logs -f openebs-zfs-node-[xxxx] -n kube-system -c openebs-zfs-plugin
kubectl get pods -n kube-system
kubectl get zv -A -o yaml
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
): 1.23.5/etc/os-release
): centos 8.4.2105The text was updated successfully, but these errors were encountered: