Bug 2100330

Summary: Storage -> PVC -> upload data, does not support source reference
Product: OpenShift Container Platform Reporter: Yaacov Zamir <yzamir>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: medium    
Version: 4.10CC: danken, gouyang, tnisan
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:
: 2110256 (view as bug list) Environment:
Last Closed: 2022-07-20 07:46:10 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: 2110256    

Description Yaacov Zamir 2022-06-23 05:46:39 UTC
Description of problem:
Data upload form in storage -> PVC -> Data upload form, does not support source Ref.

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


How reproducible:


Steps to Reproduce:
1. storage -> PVC -> Data upload
2. click "Attach this data to a Virtual Machine operating system"
3.

Actual results:
If the template using sourceRef ( and the source reference name is not identical to the PVC name ), the vm will use the sourceRef and not the uploaded data source.

Expected results:
a - do not allow to upload to specific template/s, ( use a different UI to manage sourceRef and importCron )
b - allow to upload to specific template/s, and make sure it works with sourceRef and importCron

Additional info:

Comment 2 Dan Kenigsberg 2022-06-23 06:22:20 UTC
I believe that the severity of this is higher, because it makes it impossible to use the RHEL8 template with anything but the default boot source. If prepare my own RHEL8 disk image and want to define a VM based on it, I have to define a VM with the default boot source, got to its Disks tab, delete the bootdisk, and add a new disk with my image. That's a clunky workaround that took me two weeks to figure out.

Besides, iiuc, this is a 4.10 regression.

Comment 5 Guohua Ouyang 2022-07-18 03:56:28 UTC
verified on 4.10.23, it disables the attach to os checkbox for templates

Comment 7 errata-xmlrpc 2022-07-20 07:46:10 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.23 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:5568

Comment 8 Guohua Ouyang 2022-07-22 11:57:55 UTC
Should we apply this to 4.11?

Comment 9 Yaacov Zamir 2022-07-24 07:57:22 UTC
(In reply to Guohua Ouyang from comment #8)
> Should we apply this to 4.11?

yes, makes sense to me to implement on console 4.11 too (AFAIK this code was not ported to the new kubevirt plugin)