Description of problem: volume expansion failed on filesystem resizing Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-04-22-182303 How reproducible: Always Steps to Reproduce: 1. Create a 1Gi PVC with managed-csi storageclass 2. Create a Pod consuming it 3. Delete the Pod 4. Expand the PVC to 2Gi 5. Check the PV size is 2Gi, recreate a new pod consuming this PVC. 6. Check filesystem size Actual results: Pod is stuck in "ContainerCreating" status. Warning FailedMount 2s kubelet Unable to attach or mount volumes: unmounted volumes=[local], unattached volumes=[local default-token-rdwqr]: timed out waiting for the condition Warning FailedMount <invalid> (x9 over 108s) kubelet MountVolume.MountDevice failed while expanding volume for volume "pvc-0241ec5e-64a0-4ebc-9500-e9fa52190d19" : Expander.NodeExpand failed to expand the volume : rpc error: code = Internal desc = Could not get size of block volume at path /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-0241ec5e-64a0-4ebc-9500-e9fa52190d19/globalmount: error when getting size of block volume at path /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-0241ec5e-64a0-4ebc-9500-e9fa52190d19/globalmount: output: , err: exit status 1 Expected results: Pod can expand successfully. Master Log: Node Log (of failed PODs): PV Dump: PVC Dump: StorageClass Dump (if StorageClass used by PV/PVC): Additional info:
This issue specifically has been fixed by this PR: https://github.com/openshift/azure-disk-csi-driver/pull/6. We plan to re-enable the expansion tests for Azure as soon as we fix the remaining resizing issues. We are tracking that work in bug 1948603.
offline resizing is successful in: 4.8.0-0.nightly-2021-05-12-184904
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:3759