Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1953182

Summary: [Azure disk csi driver] volume expansion failed on filesystem resizing
Product: OpenShift Container Platform Reporter: Qin Ping <piqin>
Component: StorageAssignee: Fabio Bertinatto <fbertina>
Storage sub component: Operators QA Contact: Qin Ping <piqin>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, fbertina, jsafrane
Version: 4.8   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:30:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Qin Ping 2021-04-24 13:02:26 UTC
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:

Comment 1 Fabio Bertinatto 2021-05-06 09:46:25 UTC
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.

Comment 2 Qin Ping 2021-05-13 12:18:32 UTC
offline resizing is successful in: 4.8.0-0.nightly-2021-05-12-184904

Comment 5 errata-xmlrpc 2021-10-18 17:30:14 UTC
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