hpe-storage / csi-driver

A Container Storage Interface (CSI) driver from HPE
https://scod.hpedev.io
Apache License 2.0
58 stars 53 forks source link

NFS Server Provisioner - Volume Expansion #291

Open nicman68 opened 2 years ago

nicman68 commented 2 years ago

Hi

I wonder how to extend RWX/ROX PVC. I have no problem to extend a standard RWO PVC.

I have changed the storage request from 10GB to 12GB and applied the pvc-yaml

Got following errors in csi-resizer_hpe-csi-controller

I1105 14:12:14.576894 1 controller.go:224] Started PVC processing "default/my-rwx-pvc" I1105 14:12:14.589511 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"my-rwx-pvc", UID:"8891b8c1-9220-458a-90d6-1016f226eb23", APIVersion:"v1", ResourceVersion:"520547845", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-8891b8c1-9220-458a-90d6-1016f226eb23 I1105 14:12:14.591935 1 connection.go:182] GRPC call: /csi.v1.Controller/ControllerExpandVolume I1105 14:12:14.591947 1 connection.go:183] GRPC request: {"capacity_range":{"required_bytes":4294967296},"secrets":"stripped","volume_id":"8891b8c1-9220-458a-90d6-1016f226eb23"} I1105 14:12:14.612596 1 connection.go:185] GRPC response: {} I1105 14:12:14.613006 1 connection.go:186] GRPC error: rpc error: code = NotFound desc = Volume with ID 8891b8c1-9220-458a-90d6-1016f226eb23 not found E1105 14:12:14.613048 1 controller.go:360] Resize volume "pvc-8891b8c1-9220-458a-90d6-1016f226eb23" by resizer "csi.hpe.com" failed: rpc error: code = NotFound desc = Volume with ID 8891b8c1-9220-458a-90d6-1016f226eb23 not found I1105 14:12:14.613155 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"my-rwx-pvc", UID:"8891b8c1-9220-458a-90d6-1016f226eb23", APIVersion:"v1", ResourceVersion:"520547845", FieldPath:""}): type: 'Warning' reason: 'VolumeResizeFailed' resize volume pvc-8891b8c1-9220-458a-90d6-1016f226eb23 failed: rpc error: code = NotFound desc = Volume with ID 8891b8c1-9220-458a-90d6-1016f226eb23 not found I1105 14:12:14.618283 1 controller.go:224] Started PVC processing "default/my-rwx-pvc" I1105 14:12:14.630654 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"my-rwx-pvc", UID:"8891b8c1-9220-458a-90d6-1016f226eb23", APIVersion:"v1", ResourceVersion:"520547845", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-8891b8c1-9220-458a-90d6-1016f226eb23 I1105 14:12:14.633395 1 connection.go:182] GRPC call: /csi.v1.Controller/ControllerExpandVolume I1105 14:12:14.633411 1 connection.go:183] GRPC request: {"capacity_range":{"required_bytes":4294967296},"secrets":"stripped","volume_id":"8891b8c1-9220-458a-90d6-1016f226eb23"} I1105 14:12:14.644676 1 connection.go:185] GRPC response: {} I1105 14:12:14.645060 1 connection.go:186] GRPC error: rpc error: code = NotFound desc = Volume with ID 8891b8c1-9220-458a-90d6-1016f226eb23 not found E1105 14:12:14.645072 1 controller.go:360] Resize volume "pvc-8891b8c1-9220-458a-90d6-1016f226eb23" by resizer "csi.hpe.com" failed: rpc error: code = NotFound desc = Volume with ID 8891b8c1-9220-458a-90d6-1016f226eb23 not found I1105 14:12:14.645437 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"my-rwx-pvc", UID:"8891b8c1-9220-458a-90d6-1016f226eb23", APIVersion:"v1", ResourceVersion:"520547845", FieldPath:""}): type: 'Warning' reason: 'VolumeResizeFailed' resize volume pvc-8891b8c1-9220-458a-90d6-1016f226eb23 failed: rpc error: code = NotFound desc = Volume with ID 8891b8c1-9220-458a-90d6-1016f226eb23 not found

/Nicola

Greco21298 commented 9 months ago

I have also meet this issue , is there any solution ?

datamattsson commented 9 months ago

There is not other workaround then to resize the backing RWO volume to increase the capacity of the NFS export.