Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-62923

CDI fail to Upload datavolume - UI is not displaying proper error message in UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.19.0
    • CNV v4.99.0, CNV v4.19.0
    • CNV User Interface
    • None
    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.19.0.rhel9-188
    • None

      Description of problem:

      Add volume with too small of a disk fails with status code 400, UI suppoused to display proper error message 
      When the image uploaded finishes, all the UI shows is:An effor occurred
      Request failed with status code 400 

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

      CNV v4.99.0.rhel9-2295, CNV v4.19.0.rhel9-125

      How reproducible:

      1 of 1 attempt

      Steps to Reproduce: (you can check also https://issues.redhat.com/browse/CNV-57559  to see how to reprodce)
      try to do that by executing following: 

      notice (you can download image for example from  https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/latest/

      virtctl image-upload dv test-qcow2   --namespace default   --image-path=./test-82g.qcow2   --insecure   --uploadproxy-url=https://cdi-uploadproxy-openshift-cnv.apps.iuo-ahmad419.rhos-psi.cnv-qe.rhood.us   --wait-secs=600   --access-mode=ReadWriteOnce   --storage-class=ocs-storagecluster-ceph-rbd   --size=30GiUsing existing PVC default/prime-0f78ba52-a77f-40dc-975b-48d763197891
      Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.iuo-ahmad419.rhos-psi.cnv-qe.rhood.us

      the upload will be failing
       
      from CLI you will get:

      966.41 KiB / 193.28 KiB [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 500.00% 652.37 KiB p/s 1.7s error uploading image after 5 retries: unexpected return value 400, Saving stream failed: effective image size is larger than the reported available storage. A larger PVC is required

       

      Actual results:

       

      from CLI:

      966.41 KiB / 193.28 KiB [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 500.00% 652.37 KiB p/s 1.7s error uploading image after 5 retries: unexpected return value 400, Saving stream failed: effective image size is larger than the reported available storage. A larger PVC is required

      From UI

      (there is error message)

       

      Expected results:

      I was expecting to have error message "error uploading image after 5 retries: unexpected return value 400, Saving stream failed: effective image size is larger than the reported available storage. A larger PVC is required" in both  UI and CLI, but I cant see anything in UI

      Additional info:

       

              rh-ee-aviktora Adam Viktora
              rh-ee-ahafe Ahmad Hafi
              Guohua Ouyang Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: