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

[release-4.15] Wrong disk size filled in when expanding a pvc in the UI

XMLWordPrintable

    • Important
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the *Expand PVC* modal assumed the existing PVC had a `spec.resources.requests.storage` value that includes a unit. As a result, when the *Expand PVC* modal was used to expand a PVC that had a `requests.storage` value without a unit, the console would display an incorrect value in the modal. With this update, the console was updated to handle storage values with and without a unit. (link:https://issues.redhat.com/browse/OCPBUGS-27909[*OCPBUGS-27909*])
      Show
      * Previously, the *Expand PVC* modal assumed the existing PVC had a `spec.resources.requests.storage` value that includes a unit. As a result, when the *Expand PVC* modal was used to expand a PVC that had a `requests.storage` value without a unit, the console would display an incorrect value in the modal. With this update, the console was updated to handle storage values with and without a unit. (link: https://issues.redhat.com/browse/OCPBUGS-27909 [* OCPBUGS-27909 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-27779. The following is the description of the original issue:

      Description of problem:

      When expanding a PVC of unit-less size (e.g., '2147483648'), the Expand PersistentVolumeClaim modal populates the spinner with a unit-less value (e.g., 2147483648) instead of a meaningful value.

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

      CNV - 4.14.3

      How reproducible:

      always

      Steps to Reproduce:

      1.Create a PVC using the following YAML.
      
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:   
        name: task-pv-claim
      spec: 
        storageClassName: gp3-csi
        accessModes:     
          - ReadWriteOnce
        resources: 
          requests:       
            storage: "2147483648" 
      
      apiVersion: v1
      kind: Pod
      metadata:   
        name: task-pv-pod
      spec:   
        securityContext:     
          runAsNonRoot: true
          seccompProfile:       
            type: RuntimeDefault
        volumes:     
          - name: task-pv-storage
            persistentVolumeClaim:         
              claimName: task-pv-claim
        containers:     
          - name: task-pv-container
            image: nginx
            ports:         
              - containerPort: 80
                name: "http-server"
            volumeMounts:         
              - mountPath: "/usr/share/nginx/html"
                name: task-pv-storage
      
      
      2. From the newly created PVC details page, Click Actions > Expand PVC.
      3. Note the value in the spinner input.
      

      See https://drive.google.com/file/d/1toastX8rCBtUzx5M-83c9Xxe5iPA8fNQ/view for a demo

              rhn-engineering-rhamilto Robb Hamilton
              openshift-crt-jira-prow OpenShift Prow Bot
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: