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

Capacity value doesnot reflect in pvc list/status after updating storage request in PVC #746

Open
navilg opened this issue Aug 21, 2024 · 4 comments

Comments

@navilg
Copy link
Contributor

navilg commented Aug 21, 2024

What happened:

I tried to edit a PVC and increase storage request, but it doesnot increase the storage size of PVC.

What you expected to happen:
I know since we are using NFS, It will use entire NFS volume and not restricted to PVC size, But atleast it should have updated the new capacity value in PV and in PVC for proper visual in PVC and PV list.

How to reproduce it:

  1. Create a dynamic PVC in K8s using csi-driver-nfs csi-driver.
  2. Create pod which uses this PVC
  3. Edit PVC and increase resources.requests.storage

Anything else we need to know?:

is there a way as workaround to make sure PVC and PV size is reflected after we edit the storage request in PVC without making pod/app down.

Environment:

  • CSI Driver version: 4.5.0
  • Kubernetes version (use kubectl version): 1.29
  • OS (e.g. from /etc/os-release): Ubuntu 22.04
  • Kernel (e.g. uname -a):
  • Install tools: helm
  • Others:
@andyzhangx
Copy link
Member

this csi driver does not support resize

@navilg
Copy link
Contributor Author

navilg commented Aug 30, 2024

Thanks @andyzhangx

Can we add a feature where when we resize a PVC

  1. It updates the PV size to new size only in metadata (definition)
  2. It updates PVC status size to new size

I know there is not have a way to restrict the size of data inside a pv directory in nfs server. But atleast this will fix the issue of PVC size not reflecting correct status

@andyzhangx
Copy link
Member

@navilg that's a dummy resize, it's better not doing that since this driver actually does not support resize.

@jsalatiel
Copy link

Even though it is a dummy resize it is really useful to be able to do that" resync in disk size" before backing up using Velero. This way the restore to another csi will create the right size pvc before restoring otherwise it just fails to restore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants