Bug 2190171 - lun can not be used with DVs
Summary: lun can not be used with DVs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.13.2
Assignee: Álvaro Romero
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-27 11:50 UTC by Fabian Deutsch
Modified: 2023-12-15 04:26 UTC (History)
3 users (show)

Fixed In Version: v4.13.2.rhel9-2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 14:09:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 9872 0 None Merged Allow lun disks to be mapped to DataVolume sources 2023-06-28 11:31:43 UTC
Github kubevirt kubevirt pull 9910 0 None Merged [release-0.59] Allow lun disks to be mapped to DataVolume sources 2023-06-28 11:31:46 UTC
Red Hat Issue Tracker CNV-28409 0 None None None 2023-04-27 11:51:33 UTC

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

Comment 16 Red Hat Bugzilla 2023-12-15 04:26:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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