Bug 2158064 - [console] Cannot change rootdisk to existing PVC while creating VM
Summary: [console] Cannot change rootdisk to existing PVC while creating VM
Keywords:
Status: CLOSED DUPLICATE of bug 2139257
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.11.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Tal Nisan
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-04 05:37 UTC by Germano Veit Michel
Modified: 2023-01-04 21:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-04 21:42:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-23912 0 None None None 2023-01-04 21:43:16 UTC

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 ***


Note You need to log in before you can comment on or make changes to this bug.