Bug 2158064

Summary: [console] Cannot change rootdisk to existing PVC while creating VM
Product: Container Native Virtualization (CNV) Reporter: Germano Veit Michel <gveitmic>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact: Guohua Ouyang <gouyang>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.11.0CC: gouyang
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-04 21:42:02 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:

Description Germano Veit Michel 2023-01-04 05:37:39 UTC
Description of problem:

Open the OCP Web Console and:

1. Virtualization
2. Catalog
3. Select 8.x
4. Click  'Customize Virtual Machine'
5. Click Review and Create
6. Go to Disks tab
7. Edit rootdisk
8. Change Source to "Use an existing PVC"
9. Select a PVC (does not matter if already bound or not)
10. Click Save

It fails to change with this.

An error occurred
Error "spec.template.spec.volumes[0] must have exactly one source type set" for field "spec.template.spec.volumes[0]".

The workaround is to delete the Disk and create a new one.

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

How reproducible:
Always

Steps to Reproduce:
As above

Comment 1 Guohua Ouyang 2023-01-04 06:44:59 UTC
the same issue is fixed in 4.12: https://bugzilla.redhat.com/show_bug.cgi?id=2139257
Do you want us to backport the fix to 4.11?

Comment 2 Germano Veit Michel 2023-01-04 21:42:02 UTC
Not needed, sorry for the duplicate.

*** This bug has been marked as a duplicate of bug 2139257 ***