Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-5126

[vSphere-CSI] While restoring PVC stuck in Pending if storage size is larger than the snapshot storage size

XMLWordPrintable

    • None
    • Storage Sprint 230, Storage Sprint 231, Storage Sprint 232, Storage Sprint 233, Storage Sprint 235
    • 5
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • 2/23: telco reviewed

      Description of problem:

      While restoring the volumesnapshot taken of one PV provisioned with thin-csi storageclass with x storage size, the new PVC which is being restored gets stuck in Pending state if storage size of PVC is more than x.
      PVC describe shows below error:
      ~~~
        Normal   Provisioning          7s (x4 over 14s)  csi.vsphere.vmware.com_ocp4ipi09-7wc9n-master-1_c3abd702-1fae-471b-acd3-a8d58838ae81  External provisioner is provisioning volume for claim "test11/mysql"
        Warning  ProvisioningFailed    7s (x4 over 14s)  csi.vsphere.vmware.com_ocp4ipi-7wc9n-master-1_c3abd702-1fae-471b-acd3-a8d58838ae81  failed to provision volume with StorageClass "thin-csi": rpc error: code = InvalidArgument desc = size mismatches, requested volume size 2147483648 and source snapshot size 1073741824
      ~~~

      Version-Release number of selected component (if applicable):

      OCP 4.11.12

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create PVC into Bound state with thin-csi storageclass. 
      2. After that take snapshot of PV 
      3. Try to restore it by mentioning more storage size than the snapshot storage size. PVC will be stuck in pending state with error.  

      Actual results:

      PVC gets stuck in Pending state.

      Expected results:

      PVC should get into Bound state by PV provisioning though storage size of PVC is mentioned more than the storage size of snapshot from which it is trying to be restored. 

      Additional info:

      Discussion on #forum-storage about same concern: https://coreos.slack.com/archives/CBQHQFU0N/p1671566364314739

              rbednar@redhat.com Roman Bednar
              rhn-support-adeshpan Aditya Deshpande
              Wei Duan Wei Duan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: