Hide Forgot
Description of problem: Offline resizing volume is kept running for ibm vpc csi driver. Version-Release number of selected component (if applicable): 4.11.0-0.nightly-2022-02-27-122819 How reproducible: Always Steps to Reproduce: 1.Install OCP on ibm cloud 2.Create pvc/pod 3.Delete pod 4.Resize pvc volume to 11Gi 5.oc describe pvc Warning ExternalExpanding 67m volume_expand Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controller to process this PVC. Normal Resizing 67m external-resizer vpc.block.csi.ibm.io External resizer is resizing volume pvc-e39afb9a-a365-4807-ab0d-5aaa8c29e2ab Normal Resizing 54m external-resizer vpc.block.csi.ibm.io External resizer is resizing volume pvc-e39afb9a-a365-4807-ab0d-5aaa8c29e2ab Normal Resizing 42m external-resizer vpc.block.csi.ibm.io External resizer is resizing volume pvc-e39afb9a-a365-4807-ab0d-5aaa8c29e2ab Normal Resizing 29m external-resizer vpc.block.csi.ibm.io External resizer is resizing volume pvc-e39afb9a-a365-4807-ab0d-5aaa8c29e2ab Normal Resizing 16m external-resizer vpc.block.csi.ibm.io External resizer is resizing volume pvc-e39afb9a-a365-4807-ab0d-5aaa8c29e2ab Normal Resizing 3m49s external-resizer vpc.block.csi.ibm.io External resizer is resizing volume pvc-e39afb9a-a365-4807-ab0d-5aaa8c29e2ab Actual results: Expected results: Expect offline resizing is end within some time and give the message that not supported offline expansion. Master Log: Node Log (of failed PODs): PV Dump: PVC Dump: StorageClass Dump (if StorageClass used by PV/PVC): Additional info:
This looks like a CSI driver problem.
Jan Safranek, Offline volume expansion not supported in the vpc csi block driver.
raised PR for the same https://github.com/kubernetes-sigs/ibm-vpc-block-csi-driver/pull/70
So that change alone will not fix anything. We were in-fact planning to deprecate the online and offline capabilities - https://github.com/container-storage-interface/spec/pull/429 So what we are asking is, if a volume plugin only supports online expansion then external-resizer should not make `ControllerExpandVolume` call if volume is offline. I am afraid this will require a change in external-resizer.
I was trying to test my changes and its not working as expected hence I discuss with CSI community and come to know that its not supported hence I opened a defect against external-resizer https://github.com/kubernetes-csi/external-resizer/issues/197 Discussion can be found here https://kubernetes.slack.com/archives/C8EJ01Z46/p1646750799978489 So my PR is not valid till be get confirmation from community, defect fix is on hold