Bug 1390172

Summary: Custom cpu type and emulated machine values are not inherited from instance type to vm when created with API
Product: [oVirt] ovirt-engine Reporter: sefi litmanovich <slitmano>
Component: RestAPIAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: low    
Version: 4.0.5.4CC: bugs, tjelinek
Target Milestone: ---Flags: sbonazzo: ovirt-4.2-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-18 09:13:29 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:

Description sefi litmanovich 2016-10-31 12:07:48 UTC
Description of problem:

When creating via REST API a vm from an instance type which include custom values for cpu type and emulated machine, the vm is created successfully but without these calues (the value is set back to the default None in DB).
When created via webadmin, the values are inherited as expected.

Version-Release number of selected component (if applicable):
rhevm-4.0.5.4-0.1.el7ev

How reproducible:
always

Steps to Reproduce:
1. create/edit an instance type to include some values for system -> custom emulated machine and custom cpu type.
2. Create a vm using API, create from the instance type from (1).


Actual results:
Vm is created, but the values for custom emulated machine and cpu type is None.

Expected results:
Vm is created with the correct values.

Additional info:
no useful information in engine.log

Comment 1 Tomas Jelinek 2017-07-18 09:13:29 UTC
Unfortunately I have to close this due to capacity. Please feel free to reopen it it is important for you.