-
Bug
-
Resolution: Can't Do
-
Normal
-
CNV v4.13.5
-
None
-
Incidents & Support
-
0.42
-
False
-
-
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: