Bug 2138657

Summary: Setting DATA_SOURCE_* Template parameters makes VM creation fail
Product: Container Native Virtualization (CNV) Reporter: Leon Kladnitsky <lkladnit>
Component: User ExperienceAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Leon Kladnitsky <lkladnit>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: upalatuc
Target Milestone: ---   
Target Release: 4.12.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: 2023-01-24 13:41:35 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
DATA_SOURCE_NAMESPACE is checked none

Description Leon Kladnitsky 2022-10-30 18:04:53 UTC
Created attachment 1921258 [details]
DATA_SOURCE_NAMESPACE is checked

Description of problem: If some of DATA_SOURCE_* parameters are set in Template, then creation flow stucks with error: "Error "DataSource val/_____ does not exist" for field "spec.dataVolumeTemplates[0]"."


Version-Release number of selected component (if applicable): KCP v4.12.0-149


How reproducible: always


Steps to Reproduce:
1. Clone a Template
2. In cloned Template set as required DATA_SOURCE_NAME or DATA_SOURCE_NAMESPACE or both and save
3. Start VM creation flow from clobed Template in Catalog
4. Click Customize VirtualMachine

Actual results: Error message appears


Expected results: Creation flow continues


Additional info:

Comment 3 Ugo Palatucci 2022-10-31 08:45:28 UTC
this pr will fix also this bug: https://github.com/kubevirt-ui/kubevirt-plugin/pull/920

Comment 4 Ugo Palatucci 2022-11-02 11:10:46 UTC
pr merged. Bug is not reproducible anymore :-)

Comment 5 Leon Kladnitsky 2022-11-12 07:37:23 UTC
Verified on v4.12.0.-163

Comment 9 errata-xmlrpc 2023-01-24 13:41:35 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