Bug 2190171

Summary: lun can not be used with DVs
Product: Container Native Virtualization (CNV) Reporter: Fabian Deutsch <fdeutsch>
Component: StorageAssignee: Álvaro Romero <alromero>
Status: CLOSED ERRATA QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: high Docs Contact:
Priority: high    
Version: 4.12.0CC: alitke, kgoldbla, yadu
Target Milestone: ---Flags: alitke: needinfo? (kgoldbla)
Target Release: 4.13.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.13.2.rhel9-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 14:09:57 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 Fabian Deutsch 2023-04-27 11:50:00 UTC
Description of problem:
When trying to use a DV as a lun with
          disks:
            - lun:
                bus: virtio
              name: rootdisk

where rootdisk is a DVT in a VM, then I get:

Error "spec.template.spec.domain.devices.disks[0].lun can only be mapped to a PersistentVolumeClaim volume." for field "spec.template.spec.domain.devices.disks[0].lun".

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

How reproducible:
Always

Steps to Reproduce:
1. Create a VM
2. Adjust one disk backed by a DV to use a lun instead of disk
3. Save

Actual results:
Error "spec.template.spec.domain.devices.disks[0].lun can only be mapped to a PersistentVolumeClaim volume." for field "spec.template.spec.domain.devices.disks[0].lun".

Expected results:
Works

Additional info:

Comment 2 Kevin Alon Goldblatt 2023-07-10 08:19:28 UTC
Verified with the following code:
--------------------------------------
oc get csv -n openshift-cnv
NAME                                       DISPLAY                       VERSION   REPLACES                                   PHASE
kubevirt-hyperconverged-operator.v4.13.2   OpenShift Virtualization      4.13.2    kubevirt-hyperconverged-operator.v4.13.1   Succeeded
openshift-pipelines-operator-rh.v1.11.0    Red Hat OpenShift Pipelines   1.11.0                                               Succeeded



Verified with the following scenario:
[1] Created a VM including a DV as a lun >>> pvc mounted - imported completed

devices:
          disks:
          - lun:
              bus: virtio
            name: datavolumedisk1


[2] Started VM >>> vm running

Also verified upstream with dev

Moving to verified

Comment 7 Adam Litke 2023-08-09 12:24:55 UTC
Kevin, can this bug be closed?

Comment 15 errata-xmlrpc 2023-08-16 14:09:57 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.13.3 Images security and 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/RHSA-2023:4664