hpe-storage / truenas-csp

TrueNAS Container Storage Provider for HPE CSI Driver for Kubernetes
https://scod.hpedev.io
MIT License
65 stars 8 forks source link

NFS resize error Volume not found #51

Open kingnarmer opened 9 months ago

kingnarmer commented 9 months ago

I can't resize nfs pvc. I get following error. TrueNAS OS is 13.0U5.3. Appreciate help .

Error message.

time="2023-12-07T20:32:19Z" level=error msg="Failed to get volume with ID 1bce294a-df61-499d-afd9-00add7862b7a" file="controller_server.go:1523"
time="2023-12-07T20:32:19Z" level=error msg="GRPC error: rpc error: code = NotFound desc = Volume with ID 1bce294a-df61-499d-afd9-00add7862b7a not found" file="utils.go:73"
time="2023-12-07T20:32:19Z" level=info msg="GRPC call: /csi.v1.Controller/ControllerGetCapabilities" file="utils.go:69"
time="2023-12-07T20:32:19Z" level=info msg="GRPC request: {}" file="utils.go:70"
time="2023-12-07T20:32:19Z" level=info msg="GRPC response: {\"capabilities\":[{\"Type\":{\"Rpc\":{\"type\":1}}},{\"Type\":{\"Rpc\":{\"type\":2}}},{\"Type\":{\"Rpc\":{\"type\":3}}},{\"Type\":{\"Rpc\":{\"type\":5}}},{\"Type\":{\"Rpc\":{\"type\":6}}},{\"Type\":{\"Rpc\":{\"type\":7}}},{\"Type\":{\"Rpc\":{\"type\":8}}},{\"Type\":{\"Rpc\":{\"type\":9}}}]}" file="utils.go:75"
time="2023-12-07T20:32:19Z" level=info msg="GRPC call: /csi.v1.Controller/ControllerExpandVolume" file="utils.go:69"
time="2023-12-07T20:32:19Z" level=info msg="GRPC request: {\"capacity_range\":{\"required_bytes\":35433480192},\"secrets\":\"***stripped***\",\"volume_capability\":{\"AccessType\":{\"Mount\":{\"fs_type\":\"ext4\"}},\"access_mode\":{\"mode\":5}},\"volume_id\":\"1bce294a-df61-499d-afd9-00add7862b7a\"}" file="utils.go:70"
time="2023-12-07T20:32:20Z" level=error msg="status code was 404 Not Found for request: action=GET path=http://truenas-csp-svc:8080/containers/v1/volumes/1bce294a-df61-499d-afd9-00add7862b7a, attempting to decode error response." file="client.go:184"

kubectl get pvc -n app-rwx


NAME      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS      AGE
app-rwx   Bound    pvc-1bce294a-df61-499d-afd9-00add7862b7a   13Gi       RWX            truenas-csp-nfs   4m15s
datamattsson commented 9 months ago

This is a limitation of the HPE CSI Driver. NFS backed claims can not be expanded. Expand the underlying RWO volume. It will result in inaccurate space reporting on the NFS claim.

kingnarmer commented 9 months ago

Thanks. Is there any plan on HPE-CSI side to mitigate this limitation ?

datamattsson commented 9 months ago

Yes. The implementation is delayed for various reasons but we have several customers asking for this.