Bug 2141089

Summary: Unable to upload boot images.
Product: Container Native Virtualization (CNV) Reporter: Matt Ford <maford>
Component: User ExperienceAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11.0CC: gouyang, upalatuc, yadu
Target Milestone: ---   
Target Release: 4.13.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-24 13:42:07 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:
Attachments:
Description Flags
Chome Browser Console view of the error
none
Chome Browser Network view of the error
none
Requested screen shot none

Description Matt Ford 2022-11-08 18:04:48 UTC
Created attachment 1923191 [details]
Chome Browser Console view of the error

Created attachment 1923191 [details]
Chome Browser Console view of the error

Description of problem: Uploading a boot image from the web ui fails with the error with "An error occurred: Not Found"


Version-Release number of selected component (if applicable): CNV 4.10 on OpenShift 4.11.5  using Data Foundation to manage the local storage


How reproducible:


Always

Clone an existing template
Edit the Boot Source
Add disk
select "Use this disk as a boot source"
Set the source to "Upload (Upload a new file to PVC)"
Choose the qcow2 you are going to upload
Save



Steps to Reproduce:

1. Clone an existing template
2. Edit the Boot Source
3. Add disk
4. select "Use this disk as a boot source"
5. Set the source to "Upload (Upload a new file to PVC)"
6. Choose the qcow2 you are going to upload
7. Set StorageClass to ocs-storagecluster-ceph-rbd
8. Save

Actual results:

Fails with "An eror occurred Not Found"


Expected results:

Image to be uploaded and attached to the template

Additional info: 

After speaking with Alexander Wels, it would appear that the webpage is using a GET method  
 to send the data to the server while the server is looking for the data via POST

Please see attached images for console and network reports from Browser

Comment 1 Matt Ford 2022-11-08 18:05:52 UTC
Created attachment 1923192 [details]
Chome Browser Network view of the error

Comment 2 Yan Du 2022-11-16 13:22:31 UTC
It looks like in UI code

Comment 3 Guohua Ouyang 2022-11-17 05:22:24 UTC
Hi Matt,
Could you provide a screenshot with the error "An eror occurred Not Found" shows on the console, I could not reproduce the issue because the version are confused to me. I created a 4.10 cluster which has CNV 4.10 and OCP 4.10 and then upgraded the OCP to 4.11.x, but no chance to hit the issue.

BTW, how was the cluster prepared? So it will be CNV 4.10 on OpenShift 4.11.5

Thanks,

Comment 4 Ugo Palatucci 2022-11-17 13:53:44 UTC
The key element to reproduce this bug is to use a template that has a VM object without namespace metadata.

When the object has no namespace, the template namespace is implied.

Comment 5 Matt Ford 2022-11-23 23:11:51 UTC
Created attachment 1926851 [details]
Requested screen shot

Comment 6 Guohua Ouyang 2022-12-13 07:41:04 UTC
could reproduce the issue on 4.12 and verified it on v4.13.0-1239

Comment 10 errata-xmlrpc 2023-01-24 13:42:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Virtualization 4.12.0 Images security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:0408