Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1629065

Summary: Enable libvirt dynamic ownership
Product: [oVirt] vdsm Reporter: Milan Zamazal <mzamazal>
Component: CoreAssignee: Milan Zamazal <mzamazal>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.30.0CC: bugs, mavital, nsimsolo, ratamir
Target Milestone: ovirt-4.3.0Flags: rule-engine: ovirt-4.3+
Target Release: 4.30.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.30.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-13 07:48:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Zamazal 2018-09-14 18:59:17 UTC
Vdsm should enable dynamic_ownership libvirt option and pass ownership and permission management of host devices to libvirt. That not only avoids the need to handle ownership and permissions of host devices in Vdsm, but it's also necessary for features such as Q35 support or secure boot support.

Comment 1 Milan Zamazal 2018-09-27 14:51:09 UTC
Regarding verification, it's important to test that:

- snapshots with memory work with all the supported storage kinds (NFS, iSCSI, GlusterFS, ...);
- CD-ROM works, both empty and with a media attached;
- disk hot plugs work, including block storage;
- passthrough host devices can be successfully attached to a VM: SCSI, USB, PCI (IOMMU);
- mediated devices can be attached;
- /dev/hwrng can be attached.

Comment 2 Nisim Simsolo 2018-11-08 12:39:57 UTC
Verified upstream: 
ovirt-engine-4.3.0-0.0.master.20181101091940.git61310aa.el7
vdsm-4.30.1-34.gitad59c72.el7.x86_64
libvirt-client-4.5.0-10.el7.x86_64
qemu-kvm-common-ev-2.10.0-21.el7_5.7.1.x86_64
sanlock-3.6.0-1.el7.x86_64

Verification scenario:
Manual tests:
1. USB passthrough
2. CDROM attached to VM with and without media
3. Disk hotplug (NFS and iSCSI)
4. VFIO
5. mdev, also with multiple devices on the same VM
6. Intel GVTg
7. add/remove NFS storage also NFSv4.2 - V
8. add/remove iSCSI storage - V
9. HWRNG
10. v2v from Xen and VMware
11. Import from KVM
12. VM sanity (snapshots, templates, clone etc.)

Automation tests:
No related issues observed in automation results analysis.

Comment 3 Sandro Bonazzola 2019-02-13 07:48:04 UTC
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.