Bug 1241279

Summary: engine API: Missing properties for Instance_types (instancetypes)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Jaša <djasa>
Component: ovirt-engineAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: bazulay, gklein, lsurette, mavital, mgoldboi, michal.skrivanek, nsimsolo, rbalakri, Rhev-m-bugs, srevivo, tjelinek, ykaul
Target Milestone: ovirt-3.6.1   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:10:12 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 David Jaša 2015-07-08 22:05:30 UTC
Description of problem:
engine API: Missing properties for Instance_types (instancetypes)

Version-Release number of selected component (if applicable):
ovirt-engine-webadmin-portal-3.6.0-0.0.master.20150627185748.git6f063c1.el7.centos.noarch
ovirt-engine-restapi-3.6.0-0.0.master.20150627185748.git6f063c1.el7.centos.noarch

How reproducible:
always

Steps to Reproduce:
1. in webadmin, go to Configure - Instance Types and browse all the options
2. in API, do GET http://engine.example.com/ovirt-engine/api/instancetypes with "All-content: true" header
3.

Actual results:
- API lacks many properties
- webadmin lacks some properties

Expected results:
the options exposed by both interfaces should be the same

Additional info:
in API, I'm currently missing elements e.g. for these properties:
* Console - Video Type
* Resource Allocation - Physical Memory Guaranteed
* Resource Allocation - Memory Balloon Device Enabled

in UI, I'm missing:
* display/file_transfer_enabled
* display/copy_paste_enabled

Comment 1 Tomas Jelinek 2015-09-15 12:45:48 UTC
- aligned REST API with UI (mostly removed not instance type fields from REST)
- the Video Type is not exposed to REST directly - it is determined by the engine according to the selected display type

Comment 3 Nisim Simsolo 2016-02-21 13:31:26 UTC
Verified: 
rhevm-3.6.3.2-0.1.el6
libvirt-client-1.2.17-13.el7_2.2.x86_64
vdsm-4.17.21-0.el7ev.noarch
qemu-kvm-rhev-2.3.0-31.el7_2.4.x86_64
sanlock-3.2.4-1.el7.x86_64

Verification scenario:
Compare instance type properties between REST API and webadmin.