Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light weight PVC is getting created more than max PVC size #1235

Closed
saurabhwani5 opened this issue Oct 10, 2024 · 1 comment
Closed

Light weight PVC is getting created more than max PVC size #1235

saurabhwani5 opened this issue Oct 10, 2024 · 1 comment
Labels
Customer Impact: Localized high impact (3) Reduction of function. Significant impact to workload. Customer Probability: Low (1) Issue only occurs during failure condition - disk, server, network, test assert, ... Found In: 2.13.0 For Bug issues to identify what release level issue was found in 2.13.0 Severity: 3 Indicates the the issue is on the priority list for next milestone. Type: Bug Indicates issue is an undesired behavior, usually caused by code error.
Milestone

Comments

@saurabhwani5
Copy link
Member

saurabhwani5 commented Oct 10, 2024

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

  1. Create PVC as following :
[root@ocp pr1226]# cat lw.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: scale-advance-pvc-1
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 1953673729Gi
  storageClassName: ibm-spectrum-scale-csi-lw

---

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

  1. Check PVC is getting 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   <unset>                 3s
scale-advance-pvc-1   Pending                                      ibm-spectrum-scale-csi-lw   <unset>                 8s
scale-advance-pvc-1   Pending   pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb   0                         ibm-spectrum-scale-csi-lw   <unset>                 12s
scale-advance-pvc-1   Bound     pvc-6ecdebcf-05aa-4d39-be6a-4c7bac2066eb   1953673729Gi   RWX            ibm-spectrum-scale-csi-lw   <unset>                 12s
  1. Check PVC description
[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:        <none>
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:       <none>
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]#

Images :

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

Expected behavior

Light weight volume should not be created more than the max pvc size which is 953673728Gi

Data Collection and Debugging

@saurabhwani5 saurabhwani5 added Severity: 3 Indicates the the issue is on the priority list for next milestone. Type: Bug Indicates issue is an undesired behavior, usually caused by code error. Customer Probability: Low (1) Issue only occurs during failure condition - disk, server, network, test assert, ... Customer Impact: Localized high impact (3) Reduction of function. Significant impact to workload. Found In: 2.13.0 For Bug issues to identify what release level issue was found in 2.13.0 labels Oct 10, 2024
@saurabhwani5
Copy link
Member Author

closing as issue is fixed in #1226

@saurabhwani5 saurabhwani5 added this to the v2.13.0 milestone Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Impact: Localized high impact (3) Reduction of function. Significant impact to workload. Customer Probability: Low (1) Issue only occurs during failure condition - disk, server, network, test assert, ... Found In: 2.13.0 For Bug issues to identify what release level issue was found in 2.13.0 Severity: 3 Indicates the the issue is on the priority list for next milestone. Type: Bug Indicates issue is an undesired behavior, usually caused by code error.
Projects
None yet
Development

No branches or pull requests

1 participant