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
Created attachment 1923192 [details] Chome Browser Network view of the error
It looks like in UI code
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,
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.
Created attachment 1926851 [details] Requested screen shot
could reproduce the issue on 4.12 and verified it on v4.13.0-1239
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