Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-41531

PVC size with FilesystemOverhead is not compatible with Huawei OceanStor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Normal Normal
    • CNV v4.13.12
    • CNV v4.13.5
    • Storage Platform
    • None
    • Incidents & Support
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • No

      Description of problem:

      Huawei OceanStor CSI require the PVC size to be 512 bytes aligned. When CDI add the default filesystemoverhead to PVC, it doesn't aligns to 512 bytes and provisioning the volume will fail.

      Error from CSI:

      2024-04-27T07:50:39.910271940Z I0427 07:50:39.910262       1 event.go:282] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"openshift-mtv", Name:"testiso3-scratch", UID:"xxxxx-xxx-xxxx-xxx-xxx", APIVersion:"v1", ResourceVersion:"244322605", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' failed to provision volume with StorageClass "<sc-name>": rpc error: code = Internal desc = Create Volume: the capacity 1136234735 is not an integer multiple of 512.
      

      DV is 1 Gi:

       

      03792192]# oc get dv testiso3 -o yaml |yq '.spec'
      source:
        upload: {}
      storage:
        accessModes:
          - ReadWriteMany
        resources:
          requests:
            storage: 1Gi     <===
        storageClassName: <sc-name>
        volumeMode: Filesystem

      PVC is 1136234735 bytes which is not 512 bytes aligned:

       

      03792192]# oc get pvc testiso3 -o yaml |yq '.spec'
      accessModes:
        - ReadWriteMany
      resources:
        requests:
          storage: '1136234735'        <===
      storageClassName: <sc-name>
      volumeMode: Filesystem

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

      kubevirt-hyperconverged-operator.v4.13.5

      How reproducible:

      Consistently in customer's environment.

      Steps to Reproduce:

      1. Upload a image to PVC using UI.
      2. The volume for scratch PVC is not provisioned by CSI because the PVC size was not 512 bytes aligned which is a requirement for Huawei OceanStor.
      

      Actual results:

      PVC size with FilesystemOverhead is not compatible with Huawei OceanStor.

      Additional info:

       

              iaharon Ido Aharon (Inactive)
              rhn-support-nashok Nijin Ashok
              Dalia Frank Dalia Frank
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: