-
Bug
-
Resolution: Done-Errata
-
Critical
-
4.10.z
-
None
Description of problem:
The size of PVC/datadir-ibm-spectrum-scale-pmcollector-0 is displayed incorrectly in Openshift webconsole. The PVC size is shown as (negative) -17.6GiB.
Below is SC, PV and PVC details.
$ oc get storageclass NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE ibm-spectrum-fusion-mgmt-sc spectrumscale.csi.ibm.com Delete Immediate true 2d ibm-spectrum-fusion (default) spectrumscale.csi.ibm.com Delete Immediate true 2d ibm-spectrum-scale-internal kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 2d ibm-spectrum-scale-sample spectrumscale.csi.ibm.com Delete Immediate false 2d $ oc get pv control-1.ncw-az1-005.caas.bbtnet.com-pmcollector 25Gi RWO Retain Bound ibm-spectrum-scale/datadir-ibm-spectrum-scale-pmcollector-0 ibm-spectrum-scale-internal $ oc get pvc -A NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE ibm-spectrum-scale datadir-ibm-spectrum-scale-pmcollector-0 Bound control-1.ncw-az1-005.caas.bbtnet.com-pmcollector 25Gi RWO ibm-spectrum-scale-internal 3d $ oc get pvc datadir-ibm-spectrum-scale-pmcollector-0 -n ibm-spectrum-scale kind: PersistentVolumeClaim apiVersion: v1 metadata: annotations: pv.kubernetes.io/bind-completed: 'yes' pv.kubernetes.io/bound-by-controller: 'yes' resourceVersion: '5360546' name: datadir-ibm-spectrum-scale-pmcollector-0 uid: 7a7d0609-0608-409f-91e1-209bb0b3c8d1 creationTimestamp: '2023-05-01T14:13:40Z' managedFields: - manager: kube-controller-manager operation: Update apiVersion: v1 time: '2023-05-01T14:13:40Z' fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:pv.kubernetes.io/bind-completed': {} 'f:pv.kubernetes.io/bound-by-controller': {} 'f:labels': .: {} 'f:app.kubernetes.io/instance': {} 'f:app.kubernetes.io/name': {} 'f:spec': 'f:accessModes': {} 'f:resources': 'f:requests': .: {} 'f:storage': {} 'f:storageClassName': {} 'f:volumeMode': {} 'f:volumeName': {} - manager: kube-controller-manager operation: Update apiVersion: v1 time: '2023-05-01T14:13:40Z' fieldsType: FieldsV1 fieldsV1: 'f:status': 'f:accessModes': {} 'f:capacity': .: {} 'f:storage': {} 'f:phase': {} subresource: status namespace: ibm-spectrum-scale finalizers: - kubernetes.io/pvc-protection labels: app.kubernetes.io/instance: ibm-spectrum-scale app.kubernetes.io/name: pmcollector spec: accessModes: - ReadWriteOnce resources: requests: storage: 25Gi volumeName: control-1.ncw-az1-005.caas.bbtnet.com-pmcollector storageClassName: ibm-spectrum-scale-internal volumeMode: Filesystem status: phase: Bound accessModes: - ReadWriteOnce capacity: storage: 25Gi
==> However, when executing from pod ibm-spectrum-scale-pmcollector-0, the mountPath `/opt/IBM/zimon/data` where PVC/datadir-ibm-spectrum-scale-pmcollector-0 is mounted still shows that only 12K is used so far and 11G is the currently available space. [C49904@openshift-eng-bastion-vm ~]$ oc rsh ibm-spectrum-scale-pmcollector-0 Defaulted container "pmcollector" out of: pmcollector, sysmon sh-4.4$ df -Th | grep -iE 'size|zimon' Filesystem Type Size Used Avail Use% Mounted on tmpfs tmpfs 11G 12K 11G 1% /opt/IBM/zimon/config
Version-Release number of selected component (if applicable):
OCP 4.10.21 isf-operator.v2.4.0
How reproducible:
Steps to Reproduce:
1. by installing IBM Spectrum Scale 2. 3.
Actual results:
PVC size displayed from Openshift webconsole shows negative size value.
Expected results:
PVC size displayed from Openshift webconsole should not show negative size value.
Additional info: