Bug 1957071

Summary: OpenShift Virtualization - Persistent Volume Claim Upload does not display Errors on Failure
Product: OpenShift Container Platform Reporter: Michael Washer <mwasher>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED DUPLICATE QA Contact: Guohua Ouyang <gouyang>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, gouyang, jhadvig, jokerman, spadgett, tnisan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-07 11:41:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Washer 2021-05-05 01:01:36 UTC
Description of problem:
The error messages in the WebConsole when pushing to DataVolumes is not very descriptive and sometimes an error is not displayed at all.

Version-Release number of selected component (if applicable):
OpenShift Container Native Virtualization - 2.55
OpenShift Platform - Web Console 4.6.x

How reproducible:
Ensure that OpenShift Virtualisation is installed correctly and there is a StorageClass configured for automatic provisioning of the PVs required.

Steps to Reproduce:
1. Download the RHEL QCOW image
2. Attempt to upload the RHEL image using the following guide. Ensure that the PV size is set to 5Gi.
https://docs.openshift.com/container-platform/4.6/virt/virtual_machines/virtual_disks/virt-uploading-local-disk-images-web.html

Actual results:
The upload fails and the progress-bar stalls. Nothing is displayed to the Web-Console, however intermittently there will be a `Error 400` displayed but this does not always happen.

Expected results:
The upload fails and an error message is displayed providing further information about the issue.

Additional info:

Inspecting the network packets we can see that this is a 400 error with the following contents:
~~~
HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: *
Content-Length: 120
Content-Type: text/plain; charset=utf-8
Date: Tue, 04 May 2021 23:58:36 GMT
Vary: Origin
Set-Cookie: 20168e521efcc36db27fbf0d0d57e7b6=03de3928c7031ce5975a265610c72ee4; path=/; HttpOnly; Secure; SameSite=None
------
Saving stream failed: Virtual image size 10737418240 is larger than available size 5179580416. A larger PVC is required.
~~~

Comment 1 Guohua Ouyang 2021-06-10 01:32:40 UTC
This is duplicate bug of #1889213, which has been fixed on OCP 4.7.

Comment 2 Tal Nisan 2021-07-07 11:41:15 UTC

*** This bug has been marked as a duplicate of bug 1889213 ***