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

Bug 1328921

Summary: Importing HE with VNC device attached creates corrupted VM in the database
Product: [oVirt] ovirt-engine Reporter: Roman Mohr <roman>
Component: BLL.HostedEngineAssignee: Roman Mohr <rmohr>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.5.1CC: alukiano, bugs, mavital, mgoldboi, rgolan, rmohr, slitmano, stirabos
Target Milestone: ovirt-3.6.7Flags: rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
rgolan: devel_ack+
mavital: testing_ack+
Target Release: 3.6.7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The graphics device was not imported when the hosted engine VM was imported into the engine. Furhter the VM display type of the imported VM was always set to qxl. Consequence: Because of the, when trying to manipulate the hosted engine VM through the REST API the validation failed. When manipulating it through the GUI by accident the validation passed. Fix: Import the right graphics device and set the right display type. Further update the VM definition for already imported hosted engine VMs to represent a valid VM. Result: Manipulation works through REST and GUI. It is also important to not that only after the first OVF flush after the engine upgrade on an already imported hosted engine VM, the hosted engine agent on the host will get the correct display values. Further he-agent needs to up to date to start the VM with the right parameters when reading the vm configuration from the OVF store. More in bug https://bugzilla.redhat.com/show_bug.cgi?id=1339305 about that.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-04 12:29:19 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: 1339305, 1339306    
Bug Blocks: 1326810    

Description Roman Mohr 2016-04-20 15:21:15 UTC
Description of problem:

On 3.6 when installing the hosted engine with a VNC device the import in the engine creates a VM which has no graphics device attached:

 * VNC device is not there
 * Graphics column shows VNC
 * Edit VM dialogue shows SPICE
 * Editing the VM is not possible because no graphics device is there

On 4.0 you always end up with a SPICE device no matter what you selected during "hosted-engine --deploy"


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

How reproducible:

During "hosted-engine --deploy" select the grapics device VNC.

Steps to Reproduce:
1. hosted-engine --deploy with VNC device
2. after the setup completed log into the hosted engine and add a master domain
3. after import of the hosted engine domain is done check the VMs devices

Actual results:

No graphics device there and editing the VM is not possible because of this.

Expected results:
VNC should be there.

Additional info:

Selecting SPICE gives the expected result on 3.6 and 4.0

Comment 1 Roman Mohr 2016-06-01 14:54:25 UTC
Moving back to post since there will be another 3.6.7 build I can catch.

Comment 2 sefi litmanovich 2016-06-09 11:48:04 UTC
Verified according to description with:
HOST:
vdsm-4.17.31-0.el7ev.noarch
ovirt-hosted-engine-ha-1.3.5.7-1.el7ev.noarch
ovirt-hosted-engine-setup-1.3.7.2-1.el7ev.noarch
ENGINE:
rhevm-3.6.7.3-0.1.el6.noarch

after vm import to engine edit vm shows VNC/cirrus, so does vdsm and vm.conf.