kubernetes: CSI sidecar jobs failed: Filesystem resize failed when restoring from snapshot to PVC with larger size

What happened?

We got CI failures across all CSI sidecars:

https://testgrid.k8s.io/sig-storage-csi-external-snapshotter#1-27-on-kubernetes-1-27 https://testgrid.k8s.io/sig-storage-csi-external-provisioner#1-27-on-kubernetes-1-27 https://testgrid.k8s.io/sig-storage-csi-external-resizer#1-27-on-kubernetes-1-27

I see the following in all the failed jobs:

Kubernetes e2e suite: [It] External Storage [Driver: hostpath.csi.k8s.io] [Testpattern: Dynamic PV (default fs)] provisioning should provision correct filesystem size when restoring snapshot to larger size pvc [Feature:VolumeSnapshotDataSource] expand_less 46s { failed [FAILED] Filesystem resize failed when restoring from snapshot to PVC with larger size. Restored fs size: 299853492224 bytes is not larger than origin fs size: 299853492224 bytes. HINT: Your driver needs to check the volume in NodeStageVolume and resize fs if needed. HINT: For an example patch see: https://github.com/kubernetes/cloud-provider-openstack/pull/1563/files Expected <int>: 299853492224 to be > <int>: 299853492224 In [It] at: test/e2e/storage/testsuites/provisioning.go:491 @ 10/04/23 11:50:44.626 }

What did you expect to happen?

The tests should pass.

How can we reproduce it (as minimally and precisely as possible)?

The failure shows up in the test-grid.

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
# paste output here

Cloud provider

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, …) and versions (if applicable)

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 18 (17 by maintainers)

Most upvoted comments

We need to cut a new csi-driver-host-path release and update image in prow.sh in csi-release-tools.

@xing-yang I can help with updating the csi-release-tools after the new version is released~