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

Bug 1327278

Summary: [REST API] Template does not inherit usb support type from parent Vm if it is set to 'native' when create via API
Product: [oVirt] ovirt-engine Reporter: sefi litmanovich <slitmano>
Component: RestAPIAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.6.5.1CC: bugs, gklein, shavivi
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
gklein: testing_ack+
Target Release: 4.1.0.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-15 14:57:19 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 sefi litmanovich 2016-04-14 16:13:32 UTC
Version-Release number of selected component (if applicable):


How reproducible:
rhevm-3.6.5.3-0.1.el6.noarch

Steps to Reproduce:
1. Create a vm (via webadmin or api) -> set graphic protocal=spice, enable USB support and set to native.
2. Create a new template from this vm using the api:

https://{engine_url}/ovirt-engine/api/templates/

POST:
Content-Type=application/xml
Accept=application/xml

<template>
    <name>test_template</name>
    <vm id="{vm_id}"/>
</template>

3.

Actual results:
Template is created but usb support is set to 'disabled'.

Expected results:
Template is created, usb support is enabled and set to 'native'.

Additional info:

Comment 1 sefi litmanovich 2017-02-01 15:36:54 UTC
Verified with rhevm-4.1.0.3-0.1.el7 according to steps in description.