Bug 2141089 - Unable to upload boot images.
Summary: Unable to upload boot images.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.11.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 4.13.0
Assignee: Ugo Palatucci
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-08 18:04 UTC by Matt Ford
Modified: 2023-01-24 13:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:42:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Chome Browser Console view of the error (194.46 KB, image/png)
2022-11-08 18:04 UTC, Matt Ford
no flags Details
Chome Browser Network view of the error (184.78 KB, image/png)
2022-11-08 18:05 UTC, Matt Ford
no flags Details
Requested screen shot (252.53 KB, image/jpeg)
2022-11-23 23:11 UTC, Matt Ford
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 972 0 None open Bug 2141089: Ensure vm template object has namespace 2022-11-18 14:55:35 UTC
Red Hat Issue Tracker CNV-22348 0 None None None 2022-11-08 18:11:38 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:42:18 UTC

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


Note You need to log in before you can comment on or make changes to this bug.