Bug 1482033

Summary: vGPU: custom properties mdev_type hook is not applied on VMs.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: ahadas, bugs, michal.skrivanek, nsimsolo
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
ahadas: devel_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:10:01 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:
Bug Depends On:    
Bug Blocks: 1486524    
Attachments:
Description Flags
vdsm.log
none
engine.log none

Description Nisim Simsolo 2017-08-16 10:10:49 UTC
Description of problem:
VM vGPU hook (custom propeties: mdev_type) is not applied on the VM, the VM will run but without Nvidia instance of vGPU.

Version-Release number of selected component (if applicable):
vdsm-4.20.2-74.git2be4775.el7.centos.x86_64
vdsm-hook-vfio-mdev-4.20.2-74.git2be4775.el7.centos
libvirt-client-3.2.0-14.el7_4.2.x86_64
qemu-kvm-rhev-2.9.0-14.el7.x86_64
sanlock-3.5.0-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Browse Webadmin -> VMs tab -> select VM -> edit -> custom properties: add mdev_type to VM with valid Nvidia instance. 
2. Run VM
3. Observe VM qemu-kvm process.

Actual results:
VM should run with Nvidia GPU instance attached.

Expected results:
VM is running without Nvidia GPU.

Additional info:
engine and vdsm logs attached (vdsm.log VM start 2017-08-16 13:07:19,786+0300)

Comment 1 Nisim Simsolo 2017-08-16 10:13:54 UTC
ovirt-engine build: 
ovirt-engine-4.2.0-0.0.master.20170811144920.gita423008.el7.centos

Comment 2 Nisim Simsolo 2017-08-16 10:14:21 UTC
Created attachment 1314051 [details]
vdsm.log

Comment 3 Nisim Simsolo 2017-08-16 10:14:44 UTC
Created attachment 1314052 [details]
engine.log

Comment 4 Nisim Simsolo 2017-08-21 08:55:50 UTC
Verification builds:
ovirt-engine-4.2.0-0.0.master.20170820180837.git59243e9.el7.centos
libvirt-client-3.2.0-14.el7_4.2.x86_64
vdsm-4.20.2-90.git6511af5.el7.centos.x86_64
qemu-kvm-rhev-2.9.0-14.el7.x86_64
sanlock-3.5.0-1.el7.x86_64
Nvidia GRIDSW_5.0 Beta Release KVM Drivers (R384)

Comment 5 Sandro Bonazzola 2017-12-20 11:10:01 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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