csi-driver icon indicating copy to clipboard operation
csi-driver copied to clipboard

Failed to increase pv size after successful increase of pvc size

Open SidAtQuanos opened this issue 1 month ago • 1 comments

TL;DR

Hi there,

the csi driver failed to increase the persistent volumes after redeployment of a helm chart (elastic) with increased data storage claims for the pvc

Expected behavior

Hetzner Volume size is increased: success PVC Volume size increased: success PV Volume size increased: success Disk resize: success

Observed behavior

Hetzner Volume size is increased: success PVC Volume size increased: success PV Volume size increased: failed Disk resize: failed

Error message resize volume "pvc-" by resizer "csi.hetzner.cloud" failed: rpc error: code = Internal desc = failed to expand volume: volume size is to small (invalid_input)

In this case: hetzner volume was increased to 40 GI, the persistent volume still was 30 Gi, so the csi-driver was not able to run resize2fs successfully (as 30 Gi is smaller than 40 Gi)

Minimal working example

No response

Log output

No response

Additional information

A prior update (also using helm, updating the data storage... from 20 to 30 Gi) worked for 3 nodes but failed for 3 other (out of 6). We updated the pv of the failing 3 manually. Now all 6 nodes failed.

Kubernetes Version: 1.29.1 csi-driver version: 2.6.0

Sadly it's a few days back in the past and we lag further details from the kubernetes cluster and can't look up additional details. If required we might try to update from 40Gi to possibly 45Gi to see if we can reproduce the failure

Edit: From the prior incident I seem to have noted some minor detail. the PVC hat the following entry conditions: type: Resizing status: 'True' lastProbeTime: null lastTransitionTime: '2024-04-09T10:31:57Z'

If that helps any.

SidAtQuanos avatar May 27 '24 22:05 SidAtQuanos