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

Unable to see the accurate disk usage of PVCs on web console.

XMLWordPrintable

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Unable to see the accurate disk usage of PVCs on web console. The PVC bound to PV does not display usage information on the console.

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

          

      How reproducible:

       Yes

      Steps to Reproduce:

      1. The `StorageClass` definition should resemble the example provided below.
      ~~~
      allowVolumeExpansion: true
      apiVersion: storage.k8s.io/v1
      kind: StorageClass
      metadata:
        annotations:
          storageclass.kubernetes.io/is-default-class: "true"
        creationTimestamp: "2023-11-04T11:38:24Z"
        name: storage-class-dell-block
        resourceVersion: "22xxx3"
        uid: f3ee7afa-xxxx-43ce-xxx-5221xxx303
      mountOptions:
      - context
      parameters:
        arrayId: CKMxxxx25
        csi.storage.k8s.io/fstype: xfs
        protocol: iSCSI
        storagePool: pool_1
      provisioner: csi-unity.dellemc.com
      reclaimPolicy: Delete
      volumeBindingMode: Immediate
      ~~~
      
      2. The `PersistentVolume` (PV) definition should follow the definition shown below.
      ~~~
      apiVersion: v1
      kind: PersistentVolume
      metadata:
        annotations:
          pv.kubernetes.io/provisioned-by: csi-unity.dellemc.com
          volume.kubernetes.io/provisioner-deletion-secret-name: ""
          volume.kubernetes.io/provisioner-deletion-secret-namespace: ""
        finalizers:
        - kubernetes.io/pv-protection
        - external-attacher/csi-unity-dellemc-com
        name: csivol-xxx
        resourceVersion: "15xxx52"
        uid: 88axxx-23fe-xxx-af2f-xxxx3345f
      spec:
        accessModes:
        - ReadWriteOnce
        capacity:
          storage: 40Gi
        claimRef:
          apiVersion: v1
          kind: PersistentVolumeClaim
          name: imdbvol1-xxx-0
          namespace: <namespace_name>
          resourceVersion: "15xxx17"
          uid: 8xxxxx-2xxxxa0ebxxxcexx44
        csi:
          driver: csi-unity.dellemc.com
          fsType: xfs
          volumeAttributes:
            arrayId: ckmxxxxx425
            protocol: iSCSI
            storage.kubernetes.io/csiProvisionerIdentity: 16x9xxxxx-5xx0-csi-unity.dellemc.com
            volumeId: sv_xxx
          volumeHandle: csivol-80xxxx22c-iSCSI-ckm0xxxxx-sv_205
        mountOptions:
        - context
        nodeAffinity:
          required:
            nodeSelectorTerms:
            - matchExpressions:
              - key: csi-unity.dellemc.com/ckmxxxxx-nfs
                operator: In
                values:
                - "true"
        persistentVolumeReclaimPolicy: Delete
        storageClassName: storage-class-dell-block
        volumeMode: Filesystem
      status:
        phase: Bound
      ~~~
          
      3. Please create the `PersistentVolumeClaim` (PVC) using the definition outlined below.
      ~~~
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        annotations:
          pv.kubernetes.io/bind-completed: "yes"
          pv.kubernetes.io/bound-by-controller: "yes"
          volume.beta.kubernetes.io/storage-provisioner: csi-unity.dellemc.com
          volume.kubernetes.io/storage-provisioner: csi-unity.dellemc.com
        finalizers:
        - kubernetes.io/pvc-protection
        labels:
          app: imdb
          release: 1.5.0
        name: imdbvol1-xxxx-0
        namespace: <namespace_name>
        resourceVersion: "15xxx95"
        uid: 80a63a82-xxxx-a0eb-xxxx4d44
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 40Gi
        storageClassName: storage-class-dell-block
        volumeMode: Filesystem
        volumeName: csivol-xxx
      status:
        accessModes:
        - ReadWriteOnce
        capacity:
          storage: 40Gi
        phase: Bound
      ~~~

      Actual results:

      The actual usage of PVC is not visible in console's PVCs total capacity overview circle.  

      Expected results:

      It is desired that the PVC showcases the available space in conjunction with the total capacity within the web console’s PVCs total capacity overview circle. 

      Additional info:

       They are using `csi-unity.dellemc.com`  storage-provisioner.

              hekumar@redhat.com Hemant Kumar
              rhn-support-hthakare Harshal Thakare
              Wei Duan Wei Duan
              Harshal Thakare
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: