Fedora Account System
Red Hat Associate
Red Hat Customer
This bug was initially created as a copy of Bug #2167508 I am copying this bug because: Need a backport to 4.11 as well Description of problem: When hot plugging a disk the cache mode is not set explicitly which can result in a default cache mode being used. We would like to use the same logic for hot plugged disks as for conventionally attached disks which is to prefer cache=none when the underlying storage supports direct IO. Version-Release number of selected component (if applicable): 4.10.7 How reproducible: Always Steps to Reproduce: 1. Create VM 2. Start VM 3. Hotplug a disk 4. Use `oc rsh` to connect to the appropriate virt-launcher Pod 5. Execute `virsh dumpxml 1` Actual results: The xml shows a cache mode other than 'none' for the hotplug disk Expected results: The cache mode should be set to 'none' Additional info:
Test on CNV v4.11.4-3, cache mode is none <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='none' error_policy='stop' io='native' discard='unmap'/> <source dev='/var/run/kubevirt/hotplug-disks/blank-dv' index='3'/> <backingStore/>
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 Virtualization 4.11.4 Images), 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/RHEA-2023:3352