Bug 2094074

Summary: UI requires template type to be base to use DataSource
Product: OpenShift Container Platform Reporter: joherr
Component: Console Kubevirt PluginAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: alitke, gouyang, tnisan, upalatuc, yzamir
Target Milestone: ---   
Target Release: 4.10.z   
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-10-18 21:14:01 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:
Bug Depends On: 2102302    
Bug Blocks:    

Description joherr 2022-06-06 18:26:19 UTC
Description of problem:
Creating a template with a template.kubevirt.io/type set to anything other than base will cause the UI to show an error of a boot source issue.

I can still create a VM from the template using the CLI.

Version-Release number of selected component (if applicable):
OpenShift Virtualization 4.10.1


How reproducible:
everytime


Steps to Reproduce:
1. Create template from yaml that uses a datasource for the vms disk
2. set template.kubevirt.io/type to vm
3. look in UI for the template under virtualization to see the error.

Actual results:
see a boot source error

Expected results:
see no error and can create VMs using UI.

Additional info:
I had set my provider to "Me". here is what I see when changing the provider and type to various things.

Setting type to 'base' and the UI does not complain about a Boot source. But it states the provider is Red Hat and the Boot Source is Red Hat.

Setting type to any value other than 'base' and the UI displays a 'Boot source error'.

Comment 1 Adam Litke 2022-08-09 16:46:40 UTC
Could we get this bug targeted please?

Comment 2 Yaacov Zamir 2022-08-09 16:53:14 UTC
adding @tnisan

Comment 6 Guohua Ouyang 2022-10-10 11:59:34 UTC
verified on 4.10.0-0.nightly-2022-10-08-142935
1. copy yaml of template rhel8-server-small
2. create template with the yaml, change ns to other namespace
3. set template.kubevirt.io/type to vm
4. review the new template, no problem found

Comment 9 errata-xmlrpc 2022-10-18 21:14:01 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 (OpenShift Container Platform 4.10.37 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/RHBA-2022:6901

Comment 10 Red Hat Bugzilla 2023-09-18 04:38:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days