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

Details

    • Bug
    • Resolution: Unresolved
    • Undefined
    • 4.16.0
    • 4.14
    • Management Console
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated: