Bug 1339306

Summary: Video device is not explicitly requested from VDSM
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Roman Mohr <rmohr>
Component: GeneralAssignee: Roman Mohr <rmohr>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: high Docs Contact:
Priority: high    
Version: 1.3.6.1CC: bugs, dfediuck, mavital, mgoldboi, sbonazzo
Target Milestone: ovirt-3.6.7Keywords: ZStream
Target Release: 1.3.7.0Flags: rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: video device was not explicitly requested when creating the VM through VDSM. As a result only the graphics device was reported to the engine. Consequence: Fix: Video device is now explicitly requested and the video device is written to the initial vm.conf to make sure that subsequent starts also add this device. Result: VDSM correctly reports the video device and we always create the video/graphics device combination the engine would create. In case of ovirt-engine 3.6 that is cirrus/vnc and qxl/spice. In case of ovirt-engine 4.0 that is vga/vnc and qxl/spice.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-04 12:32:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1328921, 1339216    

Description Roman Mohr 2016-05-24 16:08:36 UTC
Description of problem:
Cirrus, QXL and VGA devices are not part of the initial vm.conf. As a consequence engine-setup does not tell VDSM that it is needed. Libvirt still creates it under the hood for the SPICE and VNC graphics devices but VDSM does not report the full device. In this case VDSM reports an empty "device" field.

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


How reproducible:


Steps to Reproduce:
1. Do a full hosted-engine --deploy run
2. Import the Hosted engine VM into ovirt-engine
3. Check the imported devices in the engine

Actual results:
The cirrus/qxl/vga device is not imported

Expected results:
The video device should be imported

Additional info:

Comment 1 sefi litmanovich 2016-06-08 11:53:31 UTC
Verified with ovirt-hosted-engine-setup-1.3.7.1-1.el7ev.noarch.
Ran hosted engine setup twice, once choosing VNC as display type and once SPICE.
In both cases vm was created with the correct video device (qxl for spice and cirrus for vnc), device was visible on vm's xml and on vm.conf on the host:

devices={device:qxl,alias:video0,type:video} - SPICE case.
devices={device:cirrus,alias:video0,type:video} - VNC case.