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

Wrong disk size filled in when expanding a pvc in the UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.16.0
    • 4.14
    • Management Console
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the *Expand PersistentVolumeClaim* modal assumes the `pvc.spec.resources.requests.stroage` value includes a unit. With this update, the size is updated to 2GiB and you can change the value of the persistent volume claim (PVC). (link:https://issues.redhat.com/browse/OCPBUGS-27779[*OCPBUGS-27779*])
      Show
      * Previously, the *Expand PersistentVolumeClaim* modal assumes the `pvc.spec.resources.requests.stroage` value includes a unit. With this update, the size is updated to 2GiB and you can change the value of the persistent volume claim (PVC). (link: https://issues.redhat.com/browse/OCPBUGS-27779 [* OCPBUGS-27779 *])
    • Bug Fix
    • Done

      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
              rhn-engineering-rhamilto Robb Hamilton
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: