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

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

XMLWordPrintable

    • Important
    • No
    • False
    • Hide

      None

      Show
      None

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

      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: