Bug 2098282

Summary: Javascript error when changing boot source of custom template to be an uploaded file
Product: Container Native Virtualization (CNV) Reporter: Adam Litke <alitke>
Component: User ExperienceAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11.0CC: cnv-qe-bugs, lkladnit
Target Milestone: ---   
Target Release: 4.11.0   
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: 2022-09-14 19:35:59 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
JS Error when clicking Save none

Description Adam Litke 2022-06-17 20:16:58 UTC
Created attachment 1890987 [details]
JS Error when clicking Save

Description of problem: I created a custom template based on a rhel9 template which already had a populated source.  I then tried to replace the boot disk with one that I would upload.  When trying to save changes I get a JS error: "onUploadedDataVolume is not a function".


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


How reproducible: Always


Steps to Reproduce:
1. Clone rhel9 template to a new rhel9-custom
2. Visit the Disks tab of the rhel9-custom template
3. On the rootdisk entry select Edit from the kabob menu
4. Change Source to Upload
5. Choose a file to upload and click Save

Actual results: The error "onUploadedDataVolume is not a function" is displayed


Expected results: Upload should commence and the template should be usable to create VMs with the updated boot source.


Additional info:

Comment 1 Leon Kladnitsky 2022-06-21 15:01:21 UTC
Verified on v4.11.0-65

Comment 4 errata-xmlrpc 2022-09-14 19:35:59 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.11.0 Images security and bug fix 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-2022:6526