The IBM Spectrum Scale Container Storage Interface (CSI) project enables container orchestrators, such as Kubernetes and OpenShift, to manage the life-cycle of persistent storage.
Apache License 2.0
68
stars
49
forks
source link
Light weight PVC is getting created more than max PVC size #1235
Warning ProvisioningFailed 67s persistentvolume-controller storageclass.storage.k8s.io "ibm-spectrum-scale-csi-lw" not found
Normal ExternalProvisioning 59s (x2 over 59s) persistentvolume-controller Waiting for a volume to be created either by the external provisioner 'spectrumscale.csi.ibm.com' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
Normal Provisioning 59s spectrumscale.csi.ibm.com_ibm-spectrum-scale-csi-provisioner-7f698474dd-95vp4_8657c8ad-2074-4bfa-a318-7b3fd7994f7a External provisioner is provisioning volume for claim "ibm-spectrum-scale-csi/scale-advance-pvc-1"
Normal ProvisioningSucceeded 55s spectrumscale.csi.ibm.com_ibm-spectrum-scale-csi-provisioner-7f698474dd-95vp4_8657c8ad-2074-4bfa-a318-7b3fd7994f7a Successfully provisioned volume pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb
[root@ocp pr1226]#
Describe the bug
Max allowed PVC size is 953673728Gi , where as for light weight volume PVC is getting created of size more than that
How to Reproduce?
Please list the steps to help development teams reproduce the behavior
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ibm-spectrum-scale-csi-lw provisioner: spectrumscale.csi.ibm.com parameters: volBackendFs: "fs0" volDirBasePath: "LW" reclaimPolicy: Delete allowVolumeExpansion: true [root@ocp pr1226]# oc apply -f lw.yaml Warning: spec.resources.requests[storage]: fractional byte value "1953673729Gi" is invalid, must be an integer persistentvolumeclaim/scale-advance-pvc-1 created storageclass.storage.k8s.io/ibm-spectrum-scale-csi-lw created
[root@ocp pr1226]# oc get pvc -w NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE scale-advance-pvc-1 Pending ibm-spectrum-scale-csi-lw 3s
scale-advance-pvc-1 Pending ibm-spectrum-scale-csi-lw 8s
scale-advance-pvc-1 Pending pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb 0 ibm-spectrum-scale-csi-lw 12s
scale-advance-pvc-1 Bound pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb 1953673729Gi RWX ibm-spectrum-scale-csi-lw 12s
[root@ocp pr1226]# oc describe pvc Name: scale-advance-pvc-1 Namespace: ibm-spectrum-scale-csi StorageClass: ibm-spectrum-scale-csi-lw Status: Bound Volume: pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb Labels:
Annotations: pv.kubernetes.io/bind-completed: yes
pv.kubernetes.io/bound-by-controller: yes
volume.beta.kubernetes.io/storage-provisioner: spectrumscale.csi.ibm.com
volume.kubernetes.io/storage-provisioner: spectrumscale.csi.ibm.com
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 1953673729Gi
Access Modes: RWX
VolumeMode: Filesystem
Used By:
Events:
Type Reason Age From Message
Warning ProvisioningFailed 67s persistentvolume-controller storageclass.storage.k8s.io "ibm-spectrum-scale-csi-lw" not found Normal ExternalProvisioning 59s (x2 over 59s) persistentvolume-controller Waiting for a volume to be created either by the external provisioner 'spectrumscale.csi.ibm.com' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered. Normal Provisioning 59s spectrumscale.csi.ibm.com_ibm-spectrum-scale-csi-provisioner-7f698474dd-95vp4_8657c8ad-2074-4bfa-a318-7b3fd7994f7a External provisioner is provisioning volume for claim "ibm-spectrum-scale-csi/scale-advance-pvc-1" Normal ProvisioningSucceeded 55s spectrumscale.csi.ibm.com_ibm-spectrum-scale-csi-provisioner-7f698474dd-95vp4_8657c8ad-2074-4bfa-a318-7b3fd7994f7a Successfully provisioned volume pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb [root@ocp pr1226]#
quay.io/ibm-spectrum-scale-dev/ibm-spectrum-scale-csi-operator@sha256:c292fa07a03f5accac554a5f366b7241c31dbb85fc4617c0fe2428cf103fce56 quay.io/badri_pathak/ibm-spectrum-scale-csi-driver:pvc_max_size_v10